Comments (10)
Hmmm, good idea - I had considered separation myself. I'll look into this - are folders really the best option? I think just having fadeIn.css, attention.css would suffice.
from animate.css.
it is also important to mention that users should combine their stylesheets into as few files as possible before deploy to reduce the number of requests and increase page load performance. I've been using RequireJS optimizer to merge all the @import
into a single file, but other tools are also available like juicer and html5-boilerplate build script.
from animate.css.
I think folders are important since most users will probably have only 1 or 2 different fading animations per project, no need to load them all.
from animate.css.
Agreed. I think having folders is a good idea.
from animate.css.
The custom build tool (like Modernizr) could be very interesting / useful, but having to load x different css files if you want x animations wouldn't be a good idea in my opinion. Would need to many http requests in the end.
It's better to wrap it up / compress into one single css file. My two cents! ;)
from animate.css.
I think we're going to go for a custom build tool like Modernizr/HTML5BP. Allow users to choose options, while also allowing download of full file/minified.
from animate.css.
@EtienneLem the authoring format shouldn't be the same as the deployment format, users should combine and minify files for production. see my comment above.
@daneden I would recommend doing both, it will be easier to maintain the animations in the long run if you have everything split into different files (specially since the classes and animations aren't grouped together) renaming/editing animations can become tricky and a huge chance of being out-of-sync (ie: update -webkit-keyframes
and forget to update -moz-keyframes
, keyframes
or the class). It will also make it easier to code the "custom build tool" since you can simply read the whole content of separate files and merge them.
from animate.css.
@millermedeiros Aye, totally agree! Would make that build tool even easier.
from animate.css.
@millermederios I'm writing a custom build tool as we speak. Going to create separate files for the animations as well as a combined minified file.
How should the rules be grouped? For example:
- broad grouping (eg all fadeIns and fadeOuts together)
- grouping (fadeIns and fadeOuts separately) OR
- complete independence (every animation has a separate file)
from animate.css.
Files have been split, found in the 'source' directory. Custom build tool now available too at http://daneden.me/animate/build
from animate.css.
Related Issues (20)
- Request for a forwards fill css class parameter HOT 2
- Duplicated property name in animation.css HOT 4
- Animate only if i hit a specific section HOT 2
- Adding AOS HOT 1
- css problem in float property and box model HOT 2
- Akab
- Keep the element at the end of its animation values HOT 1
- copy button to copy code by just one click HOT 12
- Link to Hippocratic license triggers antivirus phishing alert HOT 2
- Request to Add Scroll Animations to the Repository HOT 2
- Animation intensity HOT 2
- Add .animate__animated to all .animate__animationName classes as a requisite in CSS file HOT 3
- Close List Button is not working HOT 1
- Gehe
- blank space in the document section HOT 1
- [FEATURE] Menu Icon Doesn't Hide After Click and Should Change to Cross Icon HOT 4
- License mismatch in github repo source and npmjs HOT 1
- Increase opacity class copy button
- Add copy button on important cade and command
- Animation not working on mobile IOS 17 and above
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from animate.css.