Browse Source

Making that timeing function a variable.

pull/214/head
connors 11 years ago
parent
commit
70ea3508ce
  1. 4
      lib/sass/modals.scss
  2. 2
      lib/sass/push.scss
  3. 7
      lib/sass/variables.scss

4
lib/sass/modals.scss

@ -15,7 +15,7 @@
transform: translate3d(0, 100%, 0);
-webkit-transition: -webkit-transform .25s, opacity 1ms .25s;
transition: transform .25s, opacity 1ms .25s;
-webkit-transition-timing-function: cubic-bezier(.1, .5, .1, 1); // Inspired by @c2prods
-webkit-transition-timing-function: $timing-fuction;
// Active modal
&.active {
@ -23,7 +23,7 @@
height: 100%;
-webkit-transition: -webkit-transform .25s;
transition: transform .25s;
-webkit-transition-timing-function: cubic-bezier(.1, .5, .1, 1); // Inspired by @c2prods
-webkit-transition-timing-function: $timing-fuction;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}

2
lib/sass/push.scss

@ -23,7 +23,7 @@
transition: transform .5s;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
-webkit-transition-timing-function: cubic-bezier(.1, .5, .1, 1); // Inspired by @c2prods
-webkit-transition-timing-function: $timing-fuction;
// Adding the overlay
&.sliding-in,

7
lib/sass/variables.scss

@ -34,4 +34,9 @@ $bar-side-spacing: 10px;
// Buttons
// --------------------------------------------------
$button-directional-padding: 20px;
$button-directional-margin: -($bar-side-spacing/2);
$button-directional-margin: -($bar-side-spacing/2);
// Transitions
// --------------------------------------------------
$timing-fuction: cubic-bezier(.1, .5, .1, 1); // Inspired by @c2prods
Loading…
Cancel
Save