Skroll Stylesheet not working

Asked

Viewed 46 times

1

I have the following code:

Gem:

gem 'skrollr-rails'

Javascript:

//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require skrollr
//= require skrollr.menu
//= require skrollr.stylesheets
//= require_tree .
$(document).on("ready page:load", function () {
    var s = skrollr.init({
        smoothScrolling: false,
        mobileDeceleration: 0.004
    });

    skrollr.menu.init(s, {
        animate: true,
        scale: 2
    });

    s.refresh();
});

Css:

#foo { -skrollr-animation-name: animation1; }

@-skrollr-keyframes animation1 {
    skrollr-200 { left: 0%; }
    top { color: rgb(0, 0, 0); }
    bottom { color: rgb(255, 0, 0); }
}

Include do css:

<%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true, 'data-skrollr-stylesheet' => ''  %>

Html:

<div id="foo">fooooo</div>

The plugin should fill in the input properties as well as the official documentation in this LINK but is doing nothing. What could be? See the Photo

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.