joshroos Posted February 18, 2021 Share Posted February 18, 2021 Site URL: https://www.roosbrothers.com/ I would like to add a text-indent animation to my project links on my homepage. I have managed to figure out the css to achieve the text-indent animation, however, I would like them to stay in the indented position until the mouse is no longer hovering over the link. Right now they bounce back to their original position immediately. Site is: https://www.roosbrothers.com/ Link to comment
creedon Posted February 18, 2021 Share Posted February 18, 2021 I think you want to use transitions and transforms instead of animations. Something like the following. This is just a start. You'd need to extend to meet your needs. .portfolio-hover-item-title { transition : transform 1s linear; } .portfolio-hover-item-title:hover { transform : translateX( 15px ); } This is for a v7.1 site. You'll need to remove the animation code or comment it out. If you remove make a copy somewhere. Let us know how it goes. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
joshroos Posted February 18, 2021 Author Share Posted February 18, 2021 (edited) 8 hours ago, creedon said: I think you want to use transitions and transforms instead of animations. Something like the following. This is just a start. You'd need to extend to meet your needs. .portfolio-hover-item-title { transition : transform 1s linear; } .portfolio-hover-item-title:hover { transform : translateX( 15px ); } This is for a v7.1 site. You'll need to remove the animation code or comment it out. If you remove make a copy somewhere. Let us know how it goes. Thanks @creedon, works perfectly! Edited February 18, 2021 by joshroos creedon 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment