Giter VIP home page Giter VIP logo

Comments (10)

daneden avatar daneden commented on May 18, 2024

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.

millermedeiros avatar millermedeiros commented on May 18, 2024

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.

millermedeiros avatar millermedeiros commented on May 18, 2024

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.

jrgifford avatar jrgifford commented on May 18, 2024

Agreed. I think having folders is a good idea.

from animate.css.

EtienneLem avatar EtienneLem commented on May 18, 2024

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.

daneden avatar daneden commented on May 18, 2024

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.

millermedeiros avatar millermedeiros commented on May 18, 2024

@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.

EtienneLem avatar EtienneLem commented on May 18, 2024

@millermedeiros Aye, totally agree! Would make that build tool even easier.

from animate.css.

daneden avatar daneden commented on May 18, 2024

@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.

daneden avatar daneden commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.