Clone Project

Variable Font Weight Hover

Created by
Web Bae
Similar Projects
Oops! Something went wrong while submitting the form.

0 Comments

Be the first to leave a comment.
Loading
User is typing...
No Name
Set
4 years ago
Moderator
This is the actual comment. It's can be long or short. And must contain only text information.
(Edited)
No Name
Set
2 years ago
Moderator
This is the actual comment. It's can be long or short. And must contain only text information.
(Edited)
Load More
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Load More
Description:  
AI Description

This component features a smooth GSAP animation that alters the font weight of text based on the proximity of the mouse cursor. The animation creates an engaging interaction where the font weight increases as the mouse gets closer to the text, enhancing user experience.

Key Features:

  • GSAP animation for dynamic font weight changes based on mouse position.
  • Utilizes match media queries to ensure functionality only on desktop devices.
  • Refactored code to remove jQuery and streamline functionality.
  • Incorporates SplitType.js to split text into individual characters for animation.

Design Elements:

  • The text is styled with a clear and legible font, enhancing readability.
  • The animation creates a visually engaging effect as users hover over the text.
  • The layout is simple and focused, allowing the animated text to be the main attraction.

Potential Use Cases:

  • Websites aiming to enhance user engagement through interactive text elements.
  • Landing pages for creative agencies showcasing innovative design techniques.
  • E-commerce sites looking to draw attention to promotional text or calls to action.
  • Personal portfolios that want to demonstrate advanced web design skills.

Conclusion: The Variable Font Weight Hover component offers an interactive and visually engaging way to enhance text on websites, making it suitable for various applications in web design.

Description from Webflow:  
Let's recreate this velvety variable font weight hover animation with GSAP! I stumbled on this animation when Julian posted it on LinkedIn and had to poke around the code! I changed a few things: removed jQuery, trimmed down the code, refactor to module syntax, add match media query to only run the code on desktop, and reduce the burden of mathematics with GSAP mapRange utility. Big ups to Julian for sharing this one!
Tags from Webflow: 
variablefont,  gsap,  animation
.