Sha256: 03e4aca77d1d7a56a37abbbcfabd6caf6b2c1038e6d085a4e0ec5b4598b707ce

Contents?: true

Size: 982 Bytes

Versions: 4

Compression:

Stored size: 982 Bytes

Contents

(function ($) {
  $(document).ready(function() {

    // jQuery reverse
    jQuery.fn.reverse = [].reverse;

    $('.fixed-action-btn').each(function (i) {
      var $this = $(this);
      $this.find('ul a.btn-floating').velocity(
        { scaleY: ".4", scaleX: ".4", translateY: "40px"},
        { duration: 0 });


      var timer;
      $this.hover(
        function() {
          var time = 0;
          $this.find('ul a.btn-floating').reverse().each(function () {
            $(this).velocity(
              { opacity: "1", scaleX: "1", scaleY: "1", translateY: "0"},
              { duration: 100, delay: time });
            time += 40;
          });
        }, function() {
          var time = 0;
          $this.find('ul a.btn-floating').velocity("stop", true);
          $this.find('ul a.btn-floating').velocity(
            { opacity: "0", scaleX: ".4", scaleY: ".4", translateY: "40px"},
            { duration: 100 });
        }
      );
    });

  });
}( jQuery ));

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
materialize-sass-0.95.3.2 app/assets/javascripts/materialize/buttons.js
materialize-sass-0.95.3.1 app/assets/javascripts/materialize/buttons.js
materialize-sass-0.95.3 app/assets/javascripts/materialize/buttons.js
materialize-sass-0.95.2 app/assets/javascripts/materialize/buttons.js