cutlass_js_rails 0.4.6 → 0.4.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: 6cc0734c9e5f5c7cdcccc0acd4a3720767bd1fdb
4
- data.tar.gz: 8a750d7d0460771fe728b8892b39fd8001c8de3b
3
+ metadata.gz: dcebbf4ffbc31164c82755387cf12f22d0d25471
4
+ data.tar.gz: a8c67b45e4a64369aa25c8276adafb520e848416
5
5
  SHA512:
6
- metadata.gz: e6efb7938e469f08c6949a20219ab648c91cd040986bd222c3f4169941b8c64f7a4dd946d196a9e54809a32e9575119d36b0f2df426505933fb1d561577f1634
7
- data.tar.gz: daa55301cd514d7f778260c3a56b9e4c35230893ef6e51648c7c85c2addb3395be6205f8ee0f7f39b148be5861dcde63c51b2f91902ced0ac3f04cf64a81fdd7
6
+ metadata.gz: da69c20508c32fcdaf24928fb9b2989e9d589823988843e0c48b52ca0daea551c07a6cea0420ae5225d671ea4844b57b86f86b709d9e4577f400494e77e4452c
7
+ data.tar.gz: 4dd4d279795de08b0209a916bce402edda2a598aa171633824db28ffaa539321f34e1bdf6d2e04a9ef7e136ff1783dda06205722e684e19d7aad11e7d95d1f5b
@@ -26,11 +26,16 @@ Cutlass.removeActive = function($input){
26
26
  }
27
27
 
28
28
  Cutlass.animateFields = function(){
29
+ //some of the inputs get hidden, so we show them all here.
29
30
  $('.Cutlass-input-text, .Cutlass-input-select, .Cutlass-input-select--large, .Cutlass-input-radio, .Cutlass-input-toggler, .Cutlass-input-link').addClass('s-shown');
30
- $('.Cutlass-item').each(function(i){
31
+
32
+ //Make the hidden fields visible first
33
+ $('.Cutlass-item').not(':visible').addClass('s-shown');
34
+ //Then animate in the ones that are visible one by one.
35
+ $('.Cutlass-item').filter(':visible').each(function(i){
31
36
  var $el = $(this)
32
37
  setTimeout(function(){
33
38
  $el.addClass('s-shown')
34
- }, i*90)
39
+ }, i*100)
35
40
  })
36
41
  }
@@ -17,7 +17,7 @@ $cutlass-link-color: #ff7c14 !default;
17
17
  min-height: 60px;
18
18
  border-bottom: 1px solid $cutlass-border-color;
19
19
  opacity: 0;
20
- transform: translateX(-30px);
20
+ transform: translateX(-40px);
21
21
  transition: all .5s;
22
22
 
23
23
  &.s-shown{
@@ -1,3 +1,3 @@
1
1
  module CutlassJsRails
2
- VERSION = '0.4.6'
2
+ VERSION = '0.4.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.4.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - chardos