GithubHelp home page GithubHelp logo

CSS transitions & animations about css-almanac HOT 1 OPEN

leaverou avatar leaverou commented on August 25, 2024 3
CSS transitions & animations

from css-almanac.

Comments (1)

LeaVerou avatar LeaVerou commented on August 25, 2024

Algorithm:

  • To find transitioned properties, inspect values of transition-property, and match values of transition by \s(d|r|[cr]?x|[cr]?y|[a-z-]{3,})\s. Exclude timing function keywords. Count incidence.
  • To find duration, inspect values of transition-duration, animation-duration, as well as the first <time> value in transition and animation.
  • To find timing functions, inspect values of transition-timing-function, animation-timing-function, as well as calls to steps() and cubic-bezier() and keywords (ease(-in)?(-out)?|linear|step-start|step-end) in transition and animation
  • For the animation name, it's easier to get it from rules with type: "keyframes", it's in rule.name.

I think we may need to drop timing functions by property, as it's hard to measure reliably in the general case.

from css-almanac.

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.