Replace jQuery animations with CSS animations

This commit is contained in:
Andrew Miner
2015-03-21 19:00:46 -07:00
parent 3d0908c421
commit 9956e64af0
32 changed files with 385 additions and 369 deletions
+11 -5
View File
@@ -32,11 +32,20 @@ All rights reserved.
.error-new { background: $color-error-new !important; }
.hidden {
max-height: 0;
.hideable {
opacity: 1;
transition: opacity $animate-normal;
}
.hiding {
opacity: 0;
}
.hidden {
opacity: 0;
display: none;
}
.mainBody {
position: relative; width: 81.25%;
@@ -67,7 +76,6 @@ All rights reserved.
.externalLink {
position: relative; width: 80%;
margin: 0.5em 10%;
display: none;
p {
font-family: $font-family-normal;
@@ -104,8 +112,6 @@ All rights reserved.
}
.videos {
display: none;
.panel {
text-align: center;
}
+3 -3
View File
@@ -28,9 +28,9 @@ All rights reserved.
// Animation Speeds ////////////////////////////////////////////////////////////////////////////////
$animate-fast: 0.1s;
$animate-normal: 0.25s;
$animate-slow: 0.6s;
$animate-fast: 0.200s;
$animate-normal: 0.400s;
$animate-slow: 1.200s;
// Font Faces //////////////////////////////////////////////////////////////////////////////////////
-15
View File
@@ -6,18 +6,12 @@ All rights reserved.
*/
.view__item_page {
display: none;
& > div {
vertical-align: top;
display: inline-block;
}
.sidebar {
.externalLink {
display: none;
}
button.large {
width: 100%;
}
@@ -26,7 +20,6 @@ All rights reserved.
.mainBody {
.recipes {
display: none;
.view__full_recipe {
width: 100%;
@@ -37,14 +30,6 @@ All rights reserved.
}
}
}
.similar {
display: none;
}
.usedToMake {
display: none;
}
}
.view__item {
-2
View File
@@ -6,8 +6,6 @@ All rights reserved.
*/
.view__mod_page {
display: none;
& > div {
vertical-align: top;
display: inline-block;