Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте 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

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 2

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

Suggested prompts:

How do I use the `data-aos-duration` attribute in my HTML?

What are some recommended values for `data-aos-duration` for different effects?

Can you explain how `data-aos-duration` interacts with other AOS attributes?

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

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 2
some-alt