diff options
| author | PliablePixels <pliablepixels@gmail.com> | 2015-07-03 17:14:26 -0400 |
|---|---|---|
| committer | PliablePixels <pliablepixels@gmail.com> | 2015-07-03 17:14:26 -0400 |
| commit | 422d1da283a133c6718e0b19dcad14b3adbf3e00 (patch) | |
| tree | d2e513e4922acec1267e16a188b1e4beb44df60f /www/css/_/_zoomin.scss | |
| parent | cb3f96dd10f0fd19c280e1f303e45c466c1a012f (diff) | |
moved scss and dependencies of ng-mfb to my css directory so I can adhoc compile there.
Diffstat (limited to 'www/css/_/_zoomin.scss')
| -rw-r--r-- | www/css/_/_zoomin.scss | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/www/css/_/_zoomin.scss b/www/css/_/_zoomin.scss new file mode 100644 index 00000000..df0ee0ff --- /dev/null +++ b/www/css/_/_zoomin.scss @@ -0,0 +1,78 @@ +@mixin effects-zoomin{ + +/** + * ZOOM-IN + * When hovering the main button, the child buttons grow + * from zero to normal size. + * + */ + + .mfb-component--tl.mfb-zoomin, + .mfb-component--tr.mfb-zoomin{ + .mfb-component__list{ + li{ + -webkit-transform: scale(0); + transform: scale(0); + } + @for $i from 1 through $number-of-child-buttons { + $distance: $button-space * $i; + li:nth-child( #{$i} ) { + -webkit-transform: translateY($distance) scale(0); + transform: translateY($distance) scale(0); + transition: all $slide-speed; + // this is the delay at which the buttons *disappear* + transition-delay: ( $number-of-child-buttons - $i ) * 0.05s; + } + } + } + &[data-mfb-toggle="hover"]:hover, + &[data-mfb-state="open"]{ + .mfb-component__list{ + @for $i from 1 through $number-of-child-buttons { + $distance: $button-space * $i; + li:nth-child( #{$i} ) { + -webkit-transform: translateY($distance) scale(1); + transform: translateY($distance) scale(1); + // this is the delay at which the buttons *appear* + transition-delay: $i * 0.05s; + } + } + } + } + } + + .mfb-component--bl.mfb-zoomin, + .mfb-component--br.mfb-zoomin{ + .mfb-component__list{ + li{ + -webkit-transform: scale(0); + transform: scale(0); + } + @for $i from 1 through $number-of-child-buttons { + $distance: -1 * $button-space * $i; + li:nth-child( #{$i} ) { + -webkit-transform: translateY($distance) scale(0); + transform: translateY($distance) scale(0); + transition: all $slide-speed; + // this is the delay at which the buttons start disappearing + transition-delay: ( $number-of-child-buttons - $i ) * 0.05s; + } + } + } + &[data-mfb-toggle="hover"]:hover, + &[data-mfb-state="open"]{ + .mfb-component__list{ + @for $i from 1 through $number-of-child-buttons { + $distance: -1 * $button-space * $i; + li:nth-child( #{$i} ) { + -webkit-transform: translateY($distance) scale(1); + transform: translateY($distance) scale(1); + // this is the delay at which the buttons appear + transition-delay: $i * 0.05s; + } + } + } + } + } + +} |
