Cubic Bezier Design Scale

Designing in the browser with super granular control over every aspect of the design!

Discovering the use of negative animation delays in combination with the ability to access CSS vars within keyframes opened a whole set of ideas to me, that go far beyond animation.

Define the boundaries (globally or by element) you want to design in and explore them almost infinity with a single bezier curve. Works with size, color, time... whatever CSS can interpolate.

The setup

  1. Set up a @keyframe animation with at least a min 0% and a max 100%. CSS Line 90
  2. Within those keyframes set the the CSS bounderies to your desired props: ex. 0%: font-size: .1em; 100%: font-size: 7em; CSS Line 96
  3. Set a paused animation animaimation on every element you want to control. (with a duration of 10s for example). Make sure the animation repeats in alternation. CSS Line 14
  4. By setting a negative animation delay. You are now controlling where on the design curvle (animation-time) your element sits. CSS Line 69
    example for a linear timing function:
    
    keyframes: 0%----------------100%
    value:     .1em              7em
    delay:       -1s    -5s     -10s 
    
  5. As a bonus: use CSS vars to propagate properties to a single animation, in order to have a granular control over the min and max for each element CSS Lines 61, 62
  6. Finally: Change the the timing function of the set animation to play with your design. CSS Line 17

Make sure to check the CSS tab to learn more about the technical implementation.

I'm so excited about this idea that I have trouble sleeping :D. If you ever use this for anything I would love if you let me know @meodai (or if you already have of course)

mind blown

Safari does not font-size animations in REM, make sure to use EM's

Look ma a wild Ipsum

Senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae , ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis.

Header Level 2

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue. Ut a est eget ligula molestie gravida. Curabitur massa. Donec eleifend, libero at sagittis mollis, tellus est malesuada tellus, at luctus turpis elit sit amet quam. Vivamus pretium ornare est.

Header Level 3

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue. Ut a est eget ligula molestie gravida. Curabitur massa. Donec eleifend, libero at sagittis mollis, tellus est malesuada tellus, at luctus turpis elit sit amet quam. Vivamus pretium ornare est.