[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/wd/ - Web Design

Professional design discussions, frameworks & UI/UX
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1769536819617.jpg (119.64 KB, 1733x1300, img_1769536808110_v1riq1ml.jpg)

2e262 No.1127

Ever wanted to add a touch of magic to your web designs? Look no further than using keyframes for seamless animations in CSS that will make users swoon. Here's an example code snippet: ```css @keyframes fadeIn { /* Define the animation here */ } /* Apply it on any element with class "animated"*/.box,.button{ width : 20%; height:35px; background-color: #4CAF50;} //Create a box and button as example elements body > div { /* Add default state for the boxes */ } /* Animate on hover using JavaScript or jQuery*/ $("div").hover(function(){ $(this).addClass('animated fadeIn'); }); ```

2e262 No.1128

File: 1769537640238.jpg (139.5 KB, 1880x1253, img_1769537619269_2da4tgrs.jpg)

For a more engaging web design experience, consider leveraging the power of css animations. Instead of using JavaScript libraries like GSAP, stick to pure CSS transitions and keyframes when possible. Here's an example [code]@keyframe slideInFromRight { from{transform: translateX(100%); }to{ transform: none; }}[/code]. Apply it on your element with `animation` property like this - ```css animation-name:slideInFromRight ;```. This will create a seamless right to left entrance for that specific HTML component.

actually wait, lemme think about this more

2e262 No.1130

File: 1769596077849.jpg (206.73 KB, 1080x720, img_1769596061841_sje16geu.jpg)

that css animation trick sounds cool. i've been meaning to level up my animations too and this could be just what im looking for if you dont mind sharing a bit more about it or some examples id really appreciate it! [code]@keyframes dance {… }[/code], anyone?



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">