Git Product home page Git Product logo

steller-css's People

Contributors

dependabot[bot] avatar euler-room avatar tjhillard avatar tyleriguchi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

steller-css's Issues

RFC: Transition Classes

Transition Classes

Config & Defaults

$steller-transition-properties: (
  'all',
  'width',
  'height',
  'transform',
  'opacity',
  'border',
  'background',
  'background-color',
  'box-shadow',
  'margin',
  'padding',
  'visibility',
) !default;

I tried adding the more commonly transitioned properties to but don't want the list to be too big by default. Feedback welcome here. Full possible list.

Class Syntax

There are 3 available transition classes.

Property: transition-{property}
Property to transition, needs to be included in $steller-transition-properties.

Duration: transition-duration-{duration}
Duration of transition, needs to be included in $steller-durations.

Timing Function: transition-timing-{timing}
Any of the available CSS transition timing functions (ease, linear, etc)

Examples

<div class="transition-all transition-duration-normal transition-timing-ease-in-out" />
transition: all duration('normal') ease-in-out;

<div class="transition-background transition-duration-extra-slow transition-timing-ease" />
transition: background duration('extra-slow') ease;

<div class="transition-opacity transition-duration-fast transition-timing-linear" />
transition: opacity duration('fast') linear;

Future Iterations

  • Could have a config variable for custom transition timing functions.

Typo in Readme

Want to learn more about functional/atomic/utility-frist CSS?

Also, you stole my code

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.