Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update special-effects.scss #1787

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NextLevelCode101
Copy link

The CSS defines a base gradient text class along with variations for different color gradients. This approach allows for clean and reusable gradient text effects.

.gradient-text:

This base class sets up a gradient text effect by utilizing background-clip: text, which allows the background gradient to be clipped to the text itself, creating the illusion that the text is filled with a gradient. The -webkit-background-clip: text ensures compatibility with WebKit-based browsers like Chrome and Safari. The text color is set to rgba(0, 0, 0, 0), making the text color invisible so that only the gradient is visible inside the text. Color Variations:

.gradient-text-orange: Applies an orange-to-yellow gradient to the text, creating a warm, vibrant effect. .gradient-text-green: Applies a green-to-light-green gradient for a refreshing, nature-inspired look. .gradient-text-pink: Uses a gradient from orange to pink, offering a dynamic and energetic feel. These classes can be reused across different text elements to quickly apply gradient effects with various color schemes, maintaining a clean and organized design structure.

Description for Logo GIF Hover Effect
The CSS code defines a hover effect for the logo-gif class that toggles the visibility of two elements: #logo and #logoBg.

Default State:

Initially, the #logoBg element is hidden using display: none;. Hover Effect:

When the .logo-gif container is hovered over, the #logo element is hidden (display: none;), and the #logoBg element becomes visible (display: block;). This creates a smooth transition between the two elements, with the background gif appearing in place of the regular logo when the user hovers over it.

The CSS defines a base gradient text class along with variations for different color gradients. This approach allows for clean and reusable gradient text effects.

.gradient-text:

This base class sets up a gradient text effect by utilizing background-clip: text, which allows the background gradient to be clipped to the text itself, creating the illusion that the text is filled with a gradient.
The -webkit-background-clip: text ensures compatibility with WebKit-based browsers like Chrome and Safari.
The text color is set to rgba(0, 0, 0, 0), making the text color invisible so that only the gradient is visible inside the text.
Color Variations:

.gradient-text-orange: Applies an orange-to-yellow gradient to the text, creating a warm, vibrant effect.
.gradient-text-green: Applies a green-to-light-green gradient for a refreshing, nature-inspired look.
.gradient-text-pink: Uses a gradient from orange to pink, offering a dynamic and energetic feel.
These classes can be reused across different text elements to quickly apply gradient effects with various color schemes, maintaining a clean and organized design structure.

Description for Logo GIF Hover Effect
The CSS code defines a hover effect for the logo-gif class that toggles the visibility of two elements: #logo and #logoBg.

Default State:

Initially, the #logoBg element is hidden using display: none;.
Hover Effect:

When the .logo-gif container is hovered over, the #logo element is hidden (display: none;), and the #logoBg element becomes visible (display: block;).
This creates a smooth transition between the two elements, with the background gif appearing in place of the regular logo when the user hovers over it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant