Commit f708c42e by Brian Talbot Committed by David Baumgold

Studio: revises anim syntax, adds utility anims, and revises rotate transitions for nav

parent 4a0a0673
// studio animations & keyframes // studio animations & keyframes
// ==================== // ====================
// fade in
@include keyframes(fadeIn) {
0% {
opacity: 0.0;
}
50% {
opacity: 0.5;
}
100% {
opacity: 1.0;
}
}
// canned animation - use if you want out of the box/non-customized anim
.anim-fadeIn {
@include animation(fadeIn 0.25s linear 1);
}
// fade out
@include keyframes(fadeOut) {
0% {
opacity: 1.0;
}
50% {
opacity: 0.5;
}
100% {
opacity: 0.0;
}
}
// canned animation - use if you want out of the box/non-customized anim
.anim-fadeOut {
@include animation(fadeOut 0.25s linear 1);
}
// ====================
// rotate up
@include keyframes(rotateUp) {
0% {
@include transform(rotate(0deg));
}
50% {
@include transform(rotate(-90deg));
}
100% {
@include transform(rotate(-180deg));
}
}
// canned animation - use if you want out of the box/non-customized anim
.anim-rotateUp {
@include animation(rotateUp 0.25s ease-in-out 1);
}
// rotate up
@include keyframes(rotateDown) {
0% {
@include transform(rotate(0deg));
}
50% {
@include transform(rotate(90deg));
}
100% {
@include transform(rotate(180deg));
}
}
// canned animation - use if you want out of the box/non-customized anim
.anim-rotateDown {
@include animation(rotateDown 0.25s ease-in-out 1);
}
// rotate clockwise // rotate clockwise
@include keyframes(rotateCW) { @include keyframes(rotateCW) {
0% { 0% {
...@@ -16,13 +103,12 @@ ...@@ -16,13 +103,12 @@
} }
} }
// ==================== // canned animation - use if you want out of the box/non-customized anim
// canned rotate clockwise animation - use if you want out of the box/non-customized anim
.anim-rotateCW { .anim-rotateCW {
@include animation(rotateCW 1.0s linear inifinte); @include animation(rotateCW 1.0s linear infinite);
} }
// rotate counter-clockwise // rotate counter-clockwise
@include keyframes(rotateCCW) { @include keyframes(rotateCCW) {
0% { 0% {
...@@ -38,13 +124,15 @@ ...@@ -38,13 +124,15 @@
} }
} }
// canned rotate counter-clockwise animation - use if you want out of the box/non-customized anim // canned animation - use if you want out of the box/non-customized anim
.anim-rotateCCW { .anim-rotateCCW {
@include animation(rotateCCW 1.0s linear inifinte); @include animation(rotateCCW 1.0s linear infinite);
} }
// ==================== // ====================
// notifications slide up // notifications slide up
@include keyframes(notificationSlideUp) { @include keyframes(notificationSlideUp) {
0% { 0% {
...@@ -60,8 +148,6 @@ ...@@ -60,8 +148,6 @@
} }
} }
// ====================
// notifications slide down // notifications slide down
@include keyframes(notificationSlideDown) { @include keyframes(notificationSlideDown) {
0% { 0% {
...@@ -77,8 +163,10 @@ ...@@ -77,8 +163,10 @@
} }
} }
// ==================== // ====================
// bounce in // bounce in
@include keyframes(bounceIn) { @include keyframes(bounceIn) {
0% { 0% {
...@@ -96,12 +184,11 @@ ...@@ -96,12 +184,11 @@
} }
} }
// canned bounce in animation - use if you want out of the box/non-customized anim // canned animation - use if you want out of the box/non-customized anim
.anim-bounceIn { .anim-bounceIn {
@include animation(bounceIn 0.5s ease-in-out 1); @include animation(bounceIn 0.5s ease-in-out 1);
} }
// ====================
// bounce out // bounce out
@include keyframes(bounceOut) { @include keyframes(bounceOut) {
...@@ -120,7 +207,7 @@ ...@@ -120,7 +207,7 @@
} }
} }
// canned bounce in animation - use if you want out of the box/non-customized anim // canned animation - use if you want out of the box/non-customized anim
.anim-bounceOut { .anim-bounceOut {
@include animation(bounceOut 0.5s ease-in-out 1); @include animation(bounceOut 0.5s ease-in-out 1);
} }
...@@ -33,7 +33,7 @@ nav { ...@@ -33,7 +33,7 @@ nav {
} }
.ui-toggle-dd { .ui-toggle-dd {
@include transition(rotate .25s ease-in-out .25s); @include transition(all 0.25s ease-in-out 0);
margin-left: ($baseline/10); margin-left: ($baseline/10);
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
...@@ -44,7 +44,6 @@ nav { ...@@ -44,7 +44,6 @@ nav {
.ui-toggle-dd { .ui-toggle-dd {
@include transform(rotate(-180deg)); @include transform(rotate(-180deg));
@include transform-origin(50% 50%);
} }
} }
} }
...@@ -58,7 +57,7 @@ nav { ...@@ -58,7 +57,7 @@ nav {
} }
.wrapper-nav-sub { .wrapper-nav-sub {
@include transition (opacity 1.0s ease-in-out 0s); @include transition (opacity 0.25s ease-in-out 0s);
position: absolute; position: absolute;
top: ($baseline*2.5); top: ($baseline*2.5);
opacity: 0.0; opacity: 0.0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment