- Notifications
You must be signed in to change notification settings - Fork0
A Javascript library to work with css animations
igorMSoares/js-css-animations
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
...Work in progress....
I'm creating this library to practice plain javascript and also because I'm always usingCSS animations in my projects, so I thought: "why not make my own animation library?" 😁
It provides an API to easily set and customize CSS animations using only Javascript.
Although the functionalities are all already working, I'm still making some changes, mainly to improve overall performance.
Copy the
./js-css-animations/directory to your project's folderLink the
js-animations.cssin your HTML file:
<linkrel="stylesheet"href="<path-to-js-directory>/js-css-animations/js-animations.css"/>
- Import the
js-css-animations.jsin your javascript file
importjsCssAnimationsfrom'./js-css-animations/js-css-animations.js';
- All ready and set!
// Example of usagejsCssAnimations.init.slideUp({trigger:'.btn--slide-up',targetSelector:'.slide-this-content',staggerDelay:500,duration:'1s',start:()=>{jsCssAnimations.toggle('#anchor img','rotateDownCCW','rotateUp');},});
I'm working hard to provide a complete documentation for the library, with examples to cover all the functionalities.
You can access the documentation and some usage exampleshere .
The docs were generated with jsDoc andjsdoc-to-markdown and the documentation page is built withvitepress.Thanks to vitepress, theExamples section is reactive by using Vue components inside the markdown files, so you can play around with the examples and test different values for the animations options. 😉
About
A Javascript library to work with css animations
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
