The performance of a website depends on several factors, including the speed of animations. Our system focuses on optimising animations, adapting them to the speed of user navigation and interaction. This allows us to meet the needs of a wide range of users, which vary according to browsing habits and specific situations.
For example, some users prefer to navigate quickly, requiring fast and responsive animations, while others, who may use the computer less frequently, may have no particular needs or prefer slower but clean animations. In addition, the speed of animations may be influenced by the situation the user is in, such as whether or not he or she is in a hurry, thus influencing the specific requirements regarding the speed of the page used.
In this context, our Dynamic UI
system aims to provide an optimised browsing experience for the individual needs of each user by adapting the speed of the animations according to the time taken to interact with the site.
- Animated drop-down menu with the Velocity.js library
- Animation speed based on the time the button is pressed
- Responsive design
- Everything within the
index.html
file - Press time and animation duration output
Here is a preview on Codepen [https://codepen.io/TC-Design/pen/RweKjmN] o prova il confronto [https://codepen.io/TC-Design/pen/poxRmWM]
- Clone the repository or download the source code as a zip file.
- Open the file
index.html
in your browser to view the project.
Press the 'Click Me' button to display the animated drop-down menu. The duration of the animation will depend on how long you press the button. The longer you press the button, the slower the animation will be.
Below will be returned the duration of the button press and the duration of the animation.
- HTML5
- CSS3
- JavaScript
- Velocity.js
The project is still in the beta phase. Pull requests are welcome! For major changes, please open an issue before discussing what you would like to change.
Be sure to update the tests, if applicable.