smoothState.js | Unobtrusive page transitions with jQuery | Frontend Framework library

 by   miguel-perez CSS Version: 0.5.2 License: MIT

kandi X-RAY | smoothState.js Summary

kandi X-RAY | smoothState.js Summary

smoothState.js is a CSS library typically used in User Interface, Frontend Framework, jQuery applications. smoothState.js has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

Below are some cool sites built with smoothState.js. Feel free to submit a pull request with your own site, or [tweet me] with a link.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              smoothState.js has a medium active ecosystem.
              It has 4448 star(s) with 528 fork(s). There are 117 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 116 open issues and 185 have been closed. On average issues are closed in 54 days. There are 10 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of smoothState.js is 0.5.2

            kandi-Quality Quality

              smoothState.js has no bugs reported.

            kandi-Security Security

              smoothState.js has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              smoothState.js is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              smoothState.js releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of smoothState.js
            Get all kandi verified functions for this library.

            smoothState.js Key Features

            No Key Features are available at this moment for smoothState.js.

            smoothState.js Examples and Code Snippets

            No Code Snippets are available at this moment for smoothState.js.

            Community Discussions

            QUESTION

            With smoothState.js the link not lead to secondary page
            Asked 2018-Sep-12 at 07:45

            I'm trying to make the smoothState.js plugin work. After clicking on a link that leads from index.html to secondary.html the animation produces a reverse but does not lead to secondary.html, remaining in fact on the same screen.

            Here you will find the small example uploaded on codepen: https://codepen.io/vizzale/project/editor/DPkyBr

            here instead the code:

            (index.html)

            ...

            ANSWER

            Answered 2018-Aug-28 at 12:01

            Try with class="m-scene" on your container, I don't think this class can be changed.

            Source https://stackoverflow.com/questions/51265045

            QUESTION

            smoothstate.js - back button sometimes doesn't work?
            Asked 2018-Jun-26 at 16:21

            I'm using the plugin smoothstate.js on my website. For some reason, every now and again when I navigate through the pages using the back and forward buttons, the back button stops working.

            The URL changes but the content remains the same?

            I've checked the console for errors this is displaying:

            ...

            ANSWER

            Answered 2018-Jun-26 at 16:21

            I also ran into this issue which happens when the back and forward buttons are clicked too fast without the page fully loading. A hacky solution for me was to reload the page if page.cache[page.href] is undefined.

            Source https://stackoverflow.com/questions/49005788

            QUESTION

            How to remove defaults in Jquery smoothState?
            Asked 2018-Mar-09 at 19:36

            I'm currently designing a page and using jquery.smoothstate.js.

            According to: https://github.com/miguel-perez/smoothState.js?files=1

            There's a way to remove the default values, but I can't find it.

            Because of this js. I can't run

            And keeps sending me:

            Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource

            If I disable this js, everything seems to work fine, but I need this js to run my animations.

            ...

            ANSWER

            Answered 2018-Mar-09 at 19:36

            Edit: Have you tried to add the specific class lists to the smoothState.js blacklist?

            Initialized smoothState.js like this:

            Source https://stackoverflow.com/questions/49200397

            QUESTION

            Smoothstate.js - removeClass not working onReady function
            Asked 2018-Feb-07 at 13:08

            I'm using Smoothstate.js to add page transitions to my website and I'm trying to show a loading page between each page transition using the onStart, onProgress and onReady functions.

            The code I have works, but every now and again it get's stuck on the loading page and the container div isn't removing the class 'is-loading'. However, it is removing the is-exiting class even though they're with the same removeClass line?

            I'm so confused as to why It's not removing. Can anyone help please?

            ...

            ANSWER

            Answered 2018-Feb-07 at 13:08

            Just a hint:

            you add is-loading, 500ms after the loading process started. So may it be possible that onReady gets fired before your 500ms timeout? And therefore is-loading will be added as class again, after your removeClass call?

            tl;dr: the problem is most likely the timeout here

            Source https://stackoverflow.com/questions/48663729

            QUESTION

            Contact Form 7 throws 'wpcf7.initForm is not a function' error when loading page through AJAX (smoothstate.js)
            Asked 2017-Oct-20 at 14:42

            I'm trying to implement Contact Form 7 on my wordpress website with smoothstate.js. The contact form works perfectly when the page where it is used on is loaded directly. However, if the page is loaded via AJAX the error 'wpcf7.initForm is not a function' appears.

            I'm not a genius with AJAX, but my thought was to Re-initialise in the AJAX onAfter function. I tried this by using wpcf7InitForm(); but still no luck.

            Any help on this topic will be greatly appreciated!

            Here is my current AJAX code:

            ...

            ANSWER

            Answered 2017-Oct-20 at 14:42

            There was a change to Contact Form 7 in v4.8 that got rid of jquery.form.js so the wpcf7InitForm() function no longer works. However, a new init function was brought back in v4.8.1

            Source https://stackoverflow.com/questions/45719266

            QUESTION

            Site navigation blink/flicker on localhost
            Asked 2017-May-26 at 23:12

            I'm building a site with Jekyll that uses smoothstate.js for nice transitions between pages.

            But I noticed my site's navbar refreshing when links are clicked on my local machine. This doesn't happen to the version I'm hosting on gh-pages.

            Site behaves this way on Github Pages: https://www.youtube.com/watch?v=uORstSJob_A

            ...but does this on my local machine using Jekyll 'serve': https://www.youtube.com/watch?v=jlkM13-cZzM

            How can I diagnose this issue? Could it have something to do with using 'jekyll serve' on my personal machine? A conflict between smoothstate.js & jekyll?

            ...

            ANSWER

            Answered 2017-May-26 at 23:12

            Check your javascript console for any errors, probably not serving the correct .js file needed for that plugin to work. Or there's a cross-domain error preventing it from being loaded on your localhost.

            Source https://stackoverflow.com/questions/44211237

            QUESTION

            $.ajax submit on the same page and form works only the first time
            Asked 2017-Feb-19 at 19:06

            I am using smoothState.js and I am having an issue with submitting a form and then reloading (refreshing) the page.

            When I submit the first time it works as expected. The page refreshes with the new/changed data in the inputs. But when I submit it the second time, the data apparently gets posted, but on the refresh the old unchanged data gets loaded. It is only after I do a manual refresh (click on the refresh button in the browser again) is when the new changed data appears. This only happens on the second/third/fourth etc... submit on the same form to the same page.

            ...

            ANSWER

            Answered 2017-Feb-19 at 19:06

            If it's caused by the cache you have a few options to try

            Get around the cache

            Append a random number (or the date) at the end of the request.

            Source https://stackoverflow.com/questions/42331227

            QUESTION

            How to activate smoothState.js only on certain links
            Asked 2017-Jan-08 at 13:53

            I know that there is a way to disable smoothState.js for some links by adding:

            ...

            ANSWER

            Answered 2017-Jan-08 at 13:53

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install smoothState.js

            All we need to do to get started is:. By default, smoothState.js will: * Prevent links and forms from triggering a full page load, if possible * Use AJAX to request pages and replace the content appropriately * Update URLs and browsing history so that browsing expectations aren’t broken. smoothState.js will not add page transitions to pages. You’ll need to define the animations you want to run using the hooks smoothState.js provides.
            Include a copy of jQuery and jQuery.smoothState.js on your page
            Add a container with an id of #main and include some links inside of it
            Create a new js file and run $('#main').smoothState()
            [onBefore](#onbefore) - Runs before a page load has been started
            [onStart](#onstart) - Runs once a page load has been activated
            [onProgress](#onprogress) - Runs if the page request is still pending and the onStart animations have finished
            [onReady](#onready) - Run once the requested content is ready to be injected into the page and the previous animations have finished
            [onAfter](#onafter) - Runs after the new content has been injected into the page and all animations are complete

            Support

            We’re always looking for:.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link