cutlass_js_rails 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8649b810a66aa646a5c2ecc7e6a060cbb83560b4
4
- data.tar.gz: f1f7769a154f92735fe2d55aea617d06c960a7ed
3
+ metadata.gz: eaeed95c0a330598f701baf1e586378efec3ceb1
4
+ data.tar.gz: ebb3b0bd84ef45e93a6156fc747a9cdf977a9642
5
5
  SHA512:
6
- metadata.gz: c8c8ebf991e771323d21131a5cd059423c845cb7cadccab0c96b296275a4f2631d28002fc2ceed900ed0f5ed6bcf707a9aabecb5e828bacf3ee61ee2498ea1a7
7
- data.tar.gz: dd2511d3a94d70a34ae142d432acd4bc846714920ca72149219f9f11b40f21ddaf3c04c7602124526e7613a976d8e64dd3aa024a25508cd01ba35ff30f0f8e05
6
+ metadata.gz: cdfc4876da8006914a7c2f9b538b5756339ab80a070226653e75a50e2657bd15f7ba0f291b3dd629a6db50a18ffc5e74adb168fe4c5ed10b8879a671cfd6cda8
7
+ data.tar.gz: 007d5c3c0f50a2dc1531fccc19293b0e1301c52f9c1264618ac502f7abfdcd21cea0407b024de2bce42dfe5d333f3330a14aba9819e2298eded3eb47e11b10e5
@@ -24,3 +24,14 @@ Cutlass.makeActive = function($input){
24
24
  Cutlass.removeActive = function($input){
25
25
  $input.parent().removeClass('s-active');
26
26
  }
27
+
28
+ Cutlass.animateFields = function(){
29
+ $('.Cutlass-input-text, .Cutlass-input-select, .Cutlass-input-radio, .Cutlass-input-toggler, .Cutlass-input-link').addClass('s-shown');
30
+ $('.Cutlass-item').each(function(i){
31
+ var $el = $(this)
32
+ console.log(i);
33
+ setTimeout(function(){
34
+ $el.addClass('s-shown')
35
+ }, i*50)
36
+ })
37
+ }
@@ -2,6 +2,7 @@
2
2
  //= require cutlass/html_generation
3
3
  document.addEventListener("turbolinks:load", function() {
4
4
  Cutlass.generateAllHTML()
5
+ Cutlass.animateFields()
5
6
 
6
7
  //TEXT INPUTS =========================================================
7
8
 
@@ -15,6 +15,12 @@ $cutlass-link-color: #ff7c14 !default;
15
15
  position: relative;
16
16
  min-height: 60px;
17
17
  border-bottom: 1px solid $cutlass-border-color;
18
+ opacity: 0;
19
+ transition: all 1s;
20
+
21
+ &.s-shown{
22
+ opacity: 1;
23
+ }
18
24
  &.m-last{
19
25
  border-bottom: 0;
20
26
  }
@@ -30,6 +36,17 @@ $cutlass-link-color: #ff7c14 !default;
30
36
  font-size: 15px;
31
37
  }
32
38
 
39
+ // ========================================================
40
+ // HIDING PRE-HTML-GENERATION
41
+ // ========================================================
42
+ .Cutlass-input-text, .Cutlass-input-select, .Cutlass-input-radio, .Cutlass-input-toggler, .Cutlass-input-link{
43
+ opacity: 0;
44
+ &.s-shown{
45
+ opacity: 1;
46
+ }
47
+ }
48
+
49
+
33
50
  // ========================================================
34
51
  // TEXT INPUT
35
52
  // ========================================================
@@ -1,3 +1,3 @@
1
1
  module CutlassJsRails
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cutlass_js_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - chardos