rapido-css 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,7 @@ All the animations in [theCSSguru](https://twitter.com/theCSSguru)'s [Animate mi
12
12
  * **Rotating entrances:** rotateIn, rotateInDownLeft, rotateInDownRight, rotateInUpLeft, rotateInUpRight
13
13
  * **Rotating exits:** rotateOut, rotateOutDownLeft, rotateOutDownRight, rotateOutUpLeft, rotateOutUpRight
14
14
 
15
- Styleguide 20
15
+ Styleguide 21
16
16
 
17
17
  */
18
18
 
@@ -117,9 +117,9 @@ There are available classes for all enabled animations to use with `@extend`.
117
117
 
118
118
  Example:
119
119
 
120
- @extend %fadeIn;
120
+ @extend .fadeIn;
121
121
 
122
- Styleguide 20.3
122
+ Styleguide 21.3
123
123
 
124
124
  */
125
125
 
@@ -142,21 +142,47 @@ Example:
142
142
 
143
143
  @extend .delay-50;
144
144
 
145
- Styleguide 20.4
145
+ Styleguide 21.4
146
146
 
147
147
  */
148
148
 
149
149
  @if $animations-classes {
150
150
  $delays: 0.25s, 0.50s, 0.75s, 1.00s, 1.25s, 1.50s, 1.75s, 2.00s;
151
- $delays-classes: 25, 50, 75, 100, 125, 150, 175, 200;
152
-
153
- @for $i from 0 to length($delays) {
154
- .delay-#{nth($delays-classes, ($i + 1))} {
155
- @include experimental(animation-delay, nth($delays, ($i + 1)));
151
+ @each $delay in $delays {
152
+ $delays-class: strip_units($delay)*100;
153
+ .delay-#{$delays-class} {
154
+ @include experimental(animation-delay, $delay);
156
155
  }
157
156
  }
158
157
  }
159
158
 
159
+ /*
160
+
161
+ Show animation only on scroll
162
+
163
+ It possibile to hide everything and show the entrance animation only when an element is visible.
164
+
165
+ First include this script:
166
+
167
+ <script src="http://raffone.github.io/cdn/js/animationOnScroll.js"></script>
168
+
169
+
170
+ Example:
171
+
172
+ <div data-animation-scroll="fadeInDown">
173
+ ...
174
+ </div>
175
+
176
+
177
+ Styleguide 21.5
178
+
179
+ */
180
+
181
+
182
+
183
+ [data-animation-scroll*="In"] {
184
+ @include opacity(0);
185
+ }
160
186
 
161
187
  /*
162
188
 
@@ -164,7 +190,7 @@ Animation mixin
164
190
 
165
191
  Also available is an "animate" mixin, for more information see the Mixins section.
166
192
 
167
- Styleguide 20.5
193
+ Styleguide 21.6
168
194
 
169
195
  */
170
196
 
@@ -173,25 +199,25 @@ Styleguide 20.5
173
199
 
174
200
  @if $fadeIn == true {
175
201
  @include keyframes(fadeIn) {
176
- 0% { opacity: 0; }
177
- 100% { opacity: 1; }
202
+ 0% { @include opacity(0); }
203
+ 100% { @include opacity(1); }
178
204
  }
179
205
  }
180
206
  @if $fadeOut == true {
181
207
  @include keyframes(fadeOut) {
182
- 0% { opacity: 1; }
183
- 100% { opacity: 0; }
208
+ 0% { @include opacity(1); }
209
+ 100% { @include opacity(0); }
184
210
  }
185
211
  }
186
212
  @if $fadeInUp == true {
187
213
  @include keyframes(fadeInUp) {
188
214
  0% {
189
215
  @include transform(translateY(20px));
190
- opacity: 0;
216
+ @include opacity(0);
191
217
  }
192
218
  100% {
193
219
  @include transform(translateY(0));
194
- opacity: 1;
220
+ @include opacity(1);
195
221
  }
196
222
  }
197
223
  }
@@ -199,11 +225,11 @@ Styleguide 20.5
199
225
  @include keyframes(fadeOutUp) {
200
226
  0% {
201
227
  @include transform(translateY(0));
202
- opacity: 1;
228
+ @include opacity(1);
203
229
  }
204
230
  100% {
205
231
  @include transform(translateY(-20px));
206
- opacity: 0;
232
+ @include opacity(0);
207
233
  }
208
234
  }
209
235
  }
@@ -211,11 +237,11 @@ Styleguide 20.5
211
237
  @include keyframes(fadeInDown) {
212
238
  0% {
213
239
  @include transform(translateY(-20px));
214
- opacity: 0;
240
+ @include opacity(0);
215
241
  }
216
242
  100% {
217
243
  @include transform(translateY(0));
218
- opacity: 1;
244
+ @include opacity(1);
219
245
  }
220
246
  }
221
247
  }
@@ -223,11 +249,11 @@ Styleguide 20.5
223
249
  @include keyframes(fadeOutDown) {
224
250
  0% {
225
251
  @include transform(translateY(0));
226
- opacity: 1;
252
+ @include opacity(1);
227
253
  }
228
254
  100% {
229
255
  @include transform(translateY(20px));
230
- opacity: 0;
256
+ @include opacity(0);
231
257
  }
232
258
  }
233
259
  }
@@ -235,11 +261,11 @@ Styleguide 20.5
235
261
  @include keyframes(fadeInRight) {
236
262
  0% {
237
263
  @include transform(translateX(20px));
238
- opacity: 0;
264
+ @include opacity(0);
239
265
  }
240
266
  100% {
241
267
  @include transform(translateX(0));
242
- opacity: 1;
268
+ @include opacity(1);
243
269
  }
244
270
  }
245
271
  }
@@ -247,11 +273,11 @@ Styleguide 20.5
247
273
  @include keyframes(fadeOutLeft) {
248
274
  0% {
249
275
  @include transform(translateX(0));
250
- opacity: 1;
276
+ @include opacity(1);
251
277
  }
252
278
  100% {
253
279
  @include transform(translateX(-20px));
254
- opacity: 0;
280
+ @include opacity(0);
255
281
  }
256
282
  }
257
283
  }
@@ -259,11 +285,11 @@ Styleguide 20.5
259
285
  @include keyframes(fadeInLeft) {
260
286
  0% {
261
287
  @include transform(translateX(-20px));
262
- opacity: 0;
288
+ @include opacity(0);
263
289
  }
264
290
  100% {
265
291
  @include transform(translateX(0));
266
- opacity: 1;
292
+ @include opacity(1);
267
293
  }
268
294
  }
269
295
  }
@@ -271,11 +297,11 @@ Styleguide 20.5
271
297
  @include keyframes(fadeOutRight) {
272
298
  0% {
273
299
  @include transform(translateX(0));
274
- opacity: 1;
300
+ @include opacity(1);
275
301
  }
276
302
  100% {
277
303
  @include transform(translateX(20px));
278
- opacity: 0;
304
+ @include opacity(0);
279
305
  }
280
306
  }
281
307
  }
@@ -283,11 +309,11 @@ Styleguide 20.5
283
309
  @include keyframes(fadeInUpBig) {
284
310
  0% {
285
311
  @include transform(translateY(2000px));
286
- opacity: 0;
312
+ @include opacity(0);
287
313
  }
288
314
  100% {
289
315
  @include transform(translateY(0));
290
- opacity: 1;
316
+ @include opacity(1);
291
317
  }
292
318
  }
293
319
  }
@@ -295,11 +321,11 @@ Styleguide 20.5
295
321
  @include keyframes(fadeOutUpBig) {
296
322
  0% {
297
323
  @include transform(translateY(0));
298
- opacity: 1;
324
+ @include opacity(1);
299
325
  }
300
326
  100% {
301
327
  @include transform(translateY(-2000px));
302
- opacity: 0;
328
+ @include opacity(0);
303
329
  }
304
330
  }
305
331
  }
@@ -307,11 +333,11 @@ Styleguide 20.5
307
333
  @include keyframes(fadeInDownBig) {
308
334
  0% {
309
335
  @include transform(translateY(-2000px));
310
- opacity: 0;
336
+ @include opacity(0);
311
337
  }
312
338
  100% {
313
339
  @include transform(translateY(0));
314
- opacity: 1;
340
+ @include opacity(1);
315
341
  }
316
342
  }
317
343
  }
@@ -319,11 +345,11 @@ Styleguide 20.5
319
345
  @include keyframes(fadeOutDownBig) {
320
346
  0% {
321
347
  @include transform(translateY(0));
322
- opacity: 1;
348
+ @include opacity(1);
323
349
  }
324
350
  100% {
325
351
  @include transform(translateY(2000px));
326
- opacity: 0;
352
+ @include opacity(0);
327
353
  }
328
354
  }
329
355
  }
@@ -331,11 +357,11 @@ Styleguide 20.5
331
357
  @include keyframes(fadeInRightBig) {
332
358
  0% {
333
359
  @include transform(translateX(2000px));
334
- opacity: 0;
360
+ @include opacity(0);
335
361
  }
336
362
  100% {
337
363
  @include transform(translateX(0));
338
- opacity: 1;
364
+ @include opacity(1);
339
365
  }
340
366
  }
341
367
  }
@@ -343,11 +369,11 @@ Styleguide 20.5
343
369
  @include keyframes(fadeOutLeftBig) {
344
370
  0% {
345
371
  @include transform(translateX(0));
346
- opacity: 1;
372
+ @include opacity(1);
347
373
  }
348
374
  100% {
349
375
  @include transform(translateX(-2000px));
350
- opacity: 0;
376
+ @include opacity(0);
351
377
  }
352
378
  }
353
379
  }
@@ -355,11 +381,11 @@ Styleguide 20.5
355
381
  @include keyframes(fadeInLeftBig) {
356
382
  0% {
357
383
  @include transform(translateX(-2000px));
358
- opacity: 0;
384
+ @include opacity(0);
359
385
  }
360
386
  100% {
361
387
  @include transform(translateX(0));
362
- opacity: 1;
388
+ @include opacity(1);
363
389
  }
364
390
  }
365
391
  }
@@ -367,11 +393,11 @@ Styleguide 20.5
367
393
  @include keyframes(fadeOutRightBig) {
368
394
  0% {
369
395
  @include transform(translateX(0));
370
- opacity: 1;
396
+ @include opacity(1);
371
397
  }
372
398
  100% {
373
399
  @include transform(translateX(2000px));
374
- opacity: 0;
400
+ @include opacity(0);
375
401
  }
376
402
  }
377
403
  }
@@ -379,11 +405,11 @@ Styleguide 20.5
379
405
  @include keyframes(bounceIn) {
380
406
  0% {
381
407
  @include transform(scale(0.3));
382
- opacity: 0;
408
+ @include opacity(0);
383
409
  }
384
410
  50% {
385
411
  @include transform(scale(1.05));
386
- opacity: 1;
412
+ @include opacity(1);
387
413
  }
388
414
  70% {
389
415
  @include transform(scale(0.9));
@@ -397,11 +423,11 @@ Styleguide 20.5
397
423
  @include keyframes(bounceInDown) {
398
424
  0% {
399
425
  @include transform(translateY(-2000px));
400
- opacity: 0;
426
+ @include opacity(0);
401
427
  }
402
428
  60% {
403
429
  @include transform(translateY(30px));
404
- opacity: 1;
430
+ @include opacity(1);
405
431
  }
406
432
  80% {
407
433
  @include transform(translateY(-10px));
@@ -415,11 +441,11 @@ Styleguide 20.5
415
441
  @include keyframes(bounceInUp) {
416
442
  0% {
417
443
  @include transform(translateY(2000px));
418
- opacity: 0;
444
+ @include opacity(0);
419
445
  }
420
446
  60% {
421
447
  @include transform(translateY(-30px));
422
- opacity: 1;
448
+ @include opacity(1);
423
449
  }
424
450
  80% {
425
451
  @include transform(translateY(10px));
@@ -433,11 +459,11 @@ Styleguide 20.5
433
459
  @include keyframes(bounceInRight) {
434
460
  0% {
435
461
  @include transform(translateX(2000px));
436
- opacity: 0;
462
+ @include opacity(0);
437
463
  }
438
464
  60% {
439
465
  @include transform(translateX(-30px));
440
- opacity: 1;
466
+ @include opacity(1);
441
467
  }
442
468
  80% {
443
469
  @include transform(translateX(10px));
@@ -451,11 +477,11 @@ Styleguide 20.5
451
477
  @include keyframes(bounceInLeft) {
452
478
  0% {
453
479
  @include transform(translateX(-2000px));
454
- opacity: 0;
480
+ @include opacity(0);
455
481
  }
456
482
  60% {
457
483
  @include transform(translateX(30px));
458
- opacity: 1;
484
+ @include opacity(1);
459
485
  }
460
486
  80% {
461
487
  @include transform(translateX(-10px));
@@ -475,11 +501,11 @@ Styleguide 20.5
475
501
  }
476
502
  50% {
477
503
  @include transform(scale(1.1));
478
- opacity: 1;
504
+ @include opacity(1);
479
505
  }
480
506
  100% {
481
507
  @include transform(scale(0.3));
482
- opacity: 0;
508
+ @include opacity(0);
483
509
  }
484
510
  }
485
511
  }
@@ -490,11 +516,11 @@ Styleguide 20.5
490
516
  }
491
517
  20% {
492
518
  @include transform(translateY(20px));
493
- opacity: 1;
519
+ @include opacity(1);
494
520
  }
495
521
  100% {
496
522
  @include transform(translateY(-2000px));
497
- opacity: 0;
523
+ @include opacity(0);
498
524
  }
499
525
  }
500
526
  }
@@ -505,11 +531,11 @@ Styleguide 20.5
505
531
  }
506
532
  20% {
507
533
  @include transform(translateY(-20px));
508
- opacity: 1;
534
+ @include opacity(1);
509
535
  }
510
536
  100% {
511
537
  @include transform(translateY(2000px));
512
- opacity: 0;
538
+ @include opacity(0);
513
539
  }
514
540
  }
515
541
  }
@@ -520,11 +546,11 @@ Styleguide 20.5
520
546
  }
521
547
  20% {
522
548
  @include transform(translateX(20px));
523
- opacity: 1;
549
+ @include opacity(1);
524
550
  }
525
551
  100% {
526
552
  @include transform(translateX(-2000px));
527
- opacity: 0;
553
+ @include opacity(0);
528
554
  }
529
555
  }
530
556
  }
@@ -535,21 +561,21 @@ Styleguide 20.5
535
561
  }
536
562
  20% {
537
563
  @include transform(translateX(-20px));
538
- opacity: 1;
564
+ @include opacity(1);
539
565
  }
540
566
  100% {
541
567
  @include transform(translateX(2000px));
542
- opacity: 0;
568
+ @include opacity(0);
543
569
  }
544
570
  }
545
571
  }
546
572
  @if $flash == true {
547
573
  @include keyframes(flash) {
548
- 0% { opacity: 1; }
549
- 25% { opacity: 0; }
550
- 50% { opacity: 1; }
551
- 75% { opacity: 0; }
552
- 100% { opacity: 1; }
574
+ 0% { @include opacity(1); }
575
+ 25% { @include opacity(0); }
576
+ 50% { @include opacity(1); }
577
+ 75% { @include opacity(0); }
578
+ 100% { @include opacity(1); }
553
579
  }
554
580
  }
555
581
  @if $bounce == true {
@@ -583,12 +609,12 @@ Styleguide 20.5
583
609
  0% {
584
610
  @include transform-origin(left, bottom);
585
611
  @include transform(rotate(-90deg));
586
- opacity: 0;
612
+ @include opacity(0);
587
613
  }
588
614
  100% {
589
615
  @include transform-origin(left, bottom);
590
616
  @include transform(rotate(0));
591
- opacity: 1;
617
+ @include opacity(1);
592
618
  }
593
619
  }
594
620
  }
@@ -597,12 +623,12 @@ Styleguide 20.5
597
623
  0% {
598
624
  @include transform-origin(left, bottom);
599
625
  @include transform(rotate(90deg));
600
- opacity: 0;
626
+ @include opacity(0);
601
627
  }
602
628
  100% {
603
629
  @include transform-origin(left, bottom);
604
630
  @include transform(rotate(0));
605
- opacity: 1;
631
+ @include opacity(1);
606
632
  }
607
633
  }
608
634
  }
@@ -611,12 +637,12 @@ Styleguide 20.5
611
637
  0% {
612
638
  @include transform-origin(right, bottom);
613
639
  @include transform(rotate(-90deg));
614
- opacity: 0;
640
+ @include opacity(0);
615
641
  }
616
642
  100% {
617
643
  @include transform-origin(right, bottom);
618
644
  @include transform(rotate(0));
619
- opacity: 1;
645
+ @include opacity(1);
620
646
  }
621
647
  }
622
648
  }
@@ -625,12 +651,12 @@ Styleguide 20.5
625
651
  0% {
626
652
  @include transform-origin(right, bottom);
627
653
  @include transform(rotate(90deg));
628
- opacity: 0;
654
+ @include opacity(0);
629
655
  }
630
656
  100% {
631
657
  @include transform-origin(right, bottom);
632
658
  @include transform(rotate(0));
633
- opacity: 1;
659
+ @include opacity(1);
634
660
  }
635
661
  }
636
662
  }
@@ -639,12 +665,12 @@ Styleguide 20.5
639
665
  0% {
640
666
  @include transform-origin(left, bottom);
641
667
  @include transform(rotate(0));
642
- opacity: 1;
668
+ @include opacity(1);
643
669
  }
644
670
  100% {
645
671
  @include transform-origin(left, bottom);
646
672
  @include transform(rotate(90deg));
647
- opacity: 0;
673
+ @include opacity(0);
648
674
  }
649
675
  }
650
676
  }
@@ -653,12 +679,12 @@ Styleguide 20.5
653
679
  0% {
654
680
  @include transform-origin(left, bottom);
655
681
  @include transform(rotate(0));
656
- opacity: 1;
682
+ @include opacity(1);
657
683
  }
658
684
  100% {
659
685
  @include transform-origin(left, bottom);
660
686
  @include transform(rotate(-90deg));
661
- opacity: 0;
687
+ @include opacity(0);
662
688
  }
663
689
  }
664
690
  }
@@ -667,12 +693,12 @@ Styleguide 20.5
667
693
  0% {
668
694
  @include transform-origin(right, bottom);
669
695
  @include transform(rotate(0));
670
- opacity: 1;
696
+ @include opacity(1);
671
697
  }
672
698
  100% {
673
699
  @include transform-origin(right, bottom);
674
700
  @include transform(rotate(-90deg));
675
- opacity: 0;
701
+ @include opacity(0);
676
702
  }
677
703
  }
678
704
  }
@@ -681,12 +707,12 @@ Styleguide 20.5
681
707
  0% {
682
708
  @include transform-origin(right, bottom);
683
709
  @include transform(rotate(0));
684
- opacity: 1;
710
+ @include opacity(1);
685
711
  }
686
712
  100% {
687
713
  @include transform-origin(right, bottom);
688
714
  @include transform(rotate(90deg));
689
- opacity: 0;
715
+ @include opacity(0);
690
716
  }
691
717
  }
692
718
  }
@@ -695,12 +721,12 @@ Styleguide 20.5
695
721
  0% {
696
722
  @include transform-origin(center, center);
697
723
  @include transform(rotate(-200deg));
698
- opacity: 0;
724
+ @include opacity(0);
699
725
  }
700
726
  100% {
701
727
  @include transform-origin(center, center);
702
728
  @include transform(rotate(0));
703
- opacity: 1;
729
+ @include opacity(1);
704
730
  }
705
731
  }
706
732
  }
@@ -709,12 +735,12 @@ Styleguide 20.5
709
735
  0% {
710
736
  @include transform-origin(center, center);
711
737
  @include transform(rotate(0));
712
- opacity: 1;
738
+ @include opacity(1);
713
739
  }
714
740
  100% {
715
741
  @include transform-origin(center, center);
716
742
  @include transform(rotate(200deg));
717
- opacity: 0;
743
+ @include opacity(0);
718
744
  }
719
745
  }
720
746
  }
@@ -4,7 +4,7 @@ Helper Classes
4
4
 
5
5
  There are provided some helper classes usually used with `@extend` for applying effects or common styles.
6
6
 
7
- Styleguide 22
7
+ Styleguide 23
8
8
 
9
9
  */
10
10
 
@@ -20,7 +20,7 @@ Simple divider class used in some components (like dropdowns).
20
20
 
21
21
  .divider
22
22
 
23
- Styleguide 22.1
23
+ Styleguide 23.1
24
24
 
25
25
  */
26
26
 
@@ -54,7 +54,7 @@ Same a `.wrapper` but with fixed width.
54
54
  .fixed-wrapper
55
55
  .fw
56
56
 
57
- Styleguide 22.2
57
+ Styleguide 23.2
58
58
 
59
59
  */
60
60
 
@@ -95,7 +95,7 @@ Corrispond to:
95
95
 
96
96
  width: 50% !important;
97
97
 
98
- Styleguide 22.3
98
+ Styleguide 23.3
99
99
 
100
100
  */
101
101
 
@@ -124,7 +124,7 @@ Some common classes for fixing the typography, to be used sparingly.
124
124
  .text-right # text-align: right
125
125
  .text-center # text-align: center
126
126
 
127
- Styleguide 22.4
127
+ Styleguide 23.4
128
128
 
129
129
  */
130
130
 
@@ -146,7 +146,7 @@ Simple class used for spriting.
146
146
 
147
147
  .s
148
148
 
149
- Styleguide 22.5
149
+ Styleguide 23.5
150
150
 
151
151
  */
152
152
 
@@ -176,7 +176,7 @@ All the text replacement classes from from [html5boilerplate](http://html5boiler
176
176
  .visuallyhidden
177
177
  .invisible
178
178
 
179
- Styleguide 22.6
179
+ Styleguide 23.6
180
180
 
181
181
  */
182
182