_animations.scss 5.89 KB
Newer Older
1 2 3 4
// home-header-pop-up animation
//************************************************************************//

.animation-home-header-pop-up {
5
  @include animation(home-header-pop-up 1.15s ease-in-out);
6 7 8 9 10 11
  @include animation-fill-mode(both);
  @include animation-delay(1s);
}

@mixin home-header-pop-up-keyframes {
  0% {
12
    opacity: 0.0;
13 14 15
    top: 300px;
    //@include transform(scale(0.9));
  }
16
  45% {
17
    opacity: 1.0;
18
  }
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
  65% {
    top: -40px;
    //@include transform(scale(1));
  }
  85% {
    top: 10px;
  }
  100% {
    top: 0px;
  }
}

@-webkit-keyframes home-header-pop-up { @include home-header-pop-up-keyframes; }
   @-moz-keyframes home-header-pop-up { @include home-header-pop-up-keyframes; }
        @keyframes home-header-pop-up { @include home-header-pop-up-keyframes; }

Matthew Mongeau committed
35 36 37 38 39 40 41 42 43 44 45
// title appear animation
//************************************************************************//

.animation-title-appear {
  @include animation(title-appear 4.65s ease-out);
  @include animation-fill-mode(both);
  @include animation-delay(1s);
}

@mixin title-appear-keyframes {
  0% {
46
    opacity: 0.0;
Matthew Mongeau committed
47 48 49 50
    top: 60px;
    @include transform(scale(0.9));
  }
  20% {
51
    opacity: 1.0;
Matthew Mongeau committed
52 53 54 55 56 57
  }
  27% { // this % of total-time should be ~ 1.25s
    top: 40px;
    @include transform(scale(1));
  }
  90% { // this % of total-time is when 2nd half of animation starts
58
    opacity: 1.0;
Matthew Mongeau committed
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
    top: 40px;
    @include transform(scale(1));
  }
  100% {
    top: 0px;
  }
}

@-webkit-keyframes title-appear { @include title-appear-keyframes; }
   @-moz-keyframes title-appear { @include title-appear-keyframes; }
        @keyframes title-appear { @include title-appear-keyframes; }

// home appear animation
//************************************************************************//

.animation-home-appear {
  @include animation(home-appear 4.25s ease-out);
  @include animation-fill-mode(both);
  @include animation-delay(1s);
}

@mixin home-appear-keyframes {
  0% {
82
    opacity: 0.0;
Matthew Mongeau committed
83 84 85 86
    top: 60px;
    @include transform(scale(0.9));
  }
  20% {
87
    opacity: 1.0;
Matthew Mongeau committed
88 89 90 91 92 93
  }
  30% { // this % of total-time should be ~ 1.25s
    top: 40px;
    @include transform(scale(1));
  }
  80% { // this % of total-time is when 2nd half of animation starts
94
    opacity: 1.0;
Matthew Mongeau committed
95 96 97 98
    top: 40px;
    @include transform(scale(1));
  }
  100% {
99
    opacity: 0.0;
Matthew Mongeau committed
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
    top: 60px;
    @include transform(scale(0.7));
  }
}

@-webkit-keyframes home-appear { @include home-appear-keyframes; }
   @-moz-keyframes home-appear { @include home-appear-keyframes; }
        @keyframes home-appear { @include home-appear-keyframes; }

// edx animation
//************************************************************************//

.animation-edx-appear {
  @include animation(edx-appear 1.25s ease-in);
  @include animation-fill-mode(both);
  @include animation-delay(2.15s);
}

@mixin edx-appear-keyframes {
  0% {
120
    opacity: 0.0;
Matthew Mongeau committed
121 122
  }
  100% {
123
    opacity: 1.0;
Matthew Mongeau committed
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233
  }
}

@-webkit-keyframes edx-appear { @include edx-appear-keyframes; }
   @-moz-keyframes edx-appear { @include edx-appear-keyframes; }
        @keyframes edx-appear { @include edx-appear-keyframes; }

// mit animation
//************************************************************************//

.animation-mit-slide {
  @include animation(mit-slide 1.15s ease-out);
  @include animation-fill-mode(both);
  @include animation-delay(2s);
}

@mixin mit-slide-keyframes {
  0% {
    left: 80px;
  }
  100% {
    left: 0px;
  }
}

@-webkit-keyframes mit-slide { @include mit-slide-keyframes; }
   @-moz-keyframes mit-slide { @include mit-slide-keyframes; }
        @keyframes mit-slide { @include mit-slide-keyframes; }

// harvard animation
//************************************************************************//

.animation-harvard-slide {
  @include animation(harvard-slide 1.15s ease-out);
  @include animation-fill-mode(both);
  @include animation-delay(2s);
}

@mixin harvard-slide-keyframes {
  0% {
    right: 80px;
  }
  100% {
    right: 0px;
  }
}

@-webkit-keyframes harvard-slide { @include harvard-slide-keyframes; }
   @-moz-keyframes harvard-slide { @include harvard-slide-keyframes; }
        @keyframes harvard-slide { @include harvard-slide-keyframes; }

// divider left animation
//************************************************************************//

.animation-divider-left-slide {
  @include animation(divider-left-slide 1.1s ease-out);
  @include animation-fill-mode(both);
  @include animation-delay(2s);
}

@mixin divider-left-slide-keyframes {
  0% {
    left: 340px;
  }
  100% {
    left: 200px;
  }
}

@-webkit-keyframes divider-left-slide { @include divider-left-slide-keyframes; }
   @-moz-keyframes divider-left-slide { @include divider-left-slide-keyframes; }
        @keyframes divider-left-slide { @include divider-left-slide-keyframes; }

// divider right animation
//************************************************************************//

.animation-divider-right-slide {
  @include animation(divider-right-slide 1.1s ease-out);
  @include animation-fill-mode(both);
  @include animation-delay(2s);
}

@mixin divider-right-slide-keyframes {
  0% {
    left: 340px;
  }
  100% {
    left: 480px;
  }
}

@-webkit-keyframes divider-right-slide { @include divider-right-slide-keyframes; }
   @-moz-keyframes divider-right-slide { @include divider-right-slide-keyframes; }
        @keyframes divider-right-slide { @include divider-right-slide-keyframes; }

// video appear animation
//************************************************************************//

.animation-video-appear {
  @include animation(video-appear 1.25s ease-out);
  @include animation-fill-mode(both);
  @include animation-delay(4.4s);
}

@mixin video-appear-keyframes {
  0% {
    bottom: -270px;
    opacity: 0.9;
  }
  80% {
234
    opacity: 1.0;
Matthew Mongeau committed
235 236 237 238 239 240 241 242 243
  }
  100% {
    bottom: 0px;
  }
}

@-webkit-keyframes video-appear { @include video-appear-keyframes; }
   @-moz-keyframes video-appear { @include video-appear-keyframes; }
        @keyframes video-appear { @include video-appear-keyframes; }