Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Smoothstate.js – Different stylesheets?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #201140
    Anonymous
    Inactive

    Hi!

    I am currently trying to implement smoothstate.js on my site. However, the pages linked between each other have different stylesheets – do I have to combine these at a loss of performance, or can I in any fancy javascript way add these scripts to the header? I’m thinking that it should be possible to do this in the onStart function.

        onStart: {
          duration: 250,
          render: function (url, $container) {
              //Maybe here? The problem is that I do not know what method to use in order to capture the stylesheet of the other site in a variable. Any suggestions?
    
              content.toggleAnimationClass('is-exiting');
              $body.animate({
                scrollTop: 0
              });
            }
          }
    
Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.