Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Controlling Animation Duration | Core AOS Features
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
HTML Scroll Animations with AOS

bookControlling Animation Duration

You can control how quickly or slowly an animation plays by using the data-aos-duration attribute on any element that uses AOS. The value you set for this attribute determines the total time, in milliseconds, that the animation will take from start to finish. For example, a value of 400 means the animation will last 400 milliseconds, while 2500 will make it much slower, lasting 2.5 seconds. By increasing the data-aos-duration value, you create a slower, more noticeable animation effect. Decreasing the value makes the animation finish faster. This allows you to fine-tune the visual pacing of your page and highlight important content as users scroll.

question mark

If you want an animation to last longer, what should you do with the data-aos-duration value?

Select the correct answer

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 2

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

bookControlling Animation Duration

Svep för att visa menyn

You can control how quickly or slowly an animation plays by using the data-aos-duration attribute on any element that uses AOS. The value you set for this attribute determines the total time, in milliseconds, that the animation will take from start to finish. For example, a value of 400 means the animation will last 400 milliseconds, while 2500 will make it much slower, lasting 2.5 seconds. By increasing the data-aos-duration value, you create a slower, more noticeable animation effect. Decreasing the value makes the animation finish faster. This allows you to fine-tune the visual pacing of your page and highlight important content as users scroll.

question mark

If you want an animation to last longer, what should you do with the data-aos-duration value?

Select the correct answer

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 2
some-alt