1.0.0 • Published 7 years ago

scss-cubic-bezier v1.0.0

Weekly downloads
5
License
ISC
Repository
github
Last release
7 years ago

scss-cubic-bezier

overview

A list of SCSS variable of common cubic bezier formulas. Please visit http://easings.net/ for visual examples.

installation

npm install --save scss-cubic-bezier

usage

@import "scss-cubic-bezier/scss-cubic-bezier";

.box-1 {
  transform: translateY(0);
  opacity: 0;
  transition: .3s $easeOutSine;
}
.box-1:hover {
  transform: translateY(-10px);
  opacity: 1;
  transition: .3s $easeInQuad;
}

output

.box-1 {
  transform: translateY(0);
  opacity: 0;
  transition: .3s cubic-bezier(0.39, 0.575, 0.565, 1);
}
.box-1:hover {
  transform: translateY(-10px);
  opacity: 1;
  transition: .3s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}