77 questions
1
vote
0
answers
245
views
How to include smoothState.js or any JS library in wordpress theme efficiently
me and a friend web developer tried so many solutions before bothering you here. We humbly ask your help, We also saw that Stack overflow is open for help if we put the tag : smoothState.js.
we ...
1
vote
1
answer
133
views
jQuery is not defined on Wordpress - smoothstate Js
I am trying to install smoothState.js to my wordpress theme. It is not working and while debugging, I am seeing this error - "jQuery is not defined". This is in the smoothState.js file I ...
3
votes
1
answer
84
views
How can I allow the user to transit between webpages without stopping an ongoing process?
I have a multi-paged web app, in which users may go to a different page during an ongoing process. For example a user may be at /home and he may click a link to /dashboard while, say some music is ...
0
votes
0
answers
76
views
smoothstate stops other javascript from running (electron)
basically I have an electron app and i've added minimize/close butttons to it
on load the buttons work but after switching page with smoothstate they stop working
i've found various solutions (github ...
1
vote
0
answers
265
views
Material Design Ripple Animation into Transition HTML Web
Hello StackOverFlowers!
I found this really awesome animation on jsfiddle.net and would really love to use it in my project.
I'f you follow the link the author, 'internoma', states that it can be ...
0
votes
1
answer
83
views
smoothstate injecting wrong head elements into page
The Issue
Smoothstate.js keeps the <head> of the page that I was just on and injects it back into the home page when I navigate back to index.html.
For example: I click a link that takes me ...
0
votes
2
answers
375
views
With smoothState.js the link not lead to secondary page
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 ...
0
votes
1
answer
551
views
Smoothstate.js - Loading specific stylesheets and scripts through functions.php not working
I'm wondering if someone could help me please. I'm currently using the Smoothstate.js plugin to transition between pages on my Wordpress website. So far the plugin works great and does the majority of ...
0
votes
0
answers
269
views
smoothState not to cache my pages
Is there a way of not having smoothState cache my pages? I am developing a large news site and since content is added on a daily basis people need to press F5 on all of the pages to view the new ...
1
vote
1
answer
165
views
SmoothStateJS with Custom Google Map
I know this question has been asked a few times before, but looking through the answers I still can't figure out how to fix the issue, Would someone be able to help?
My map works when I refresh the ...
0
votes
2
answers
118
views
How to remove defaults in Jquery smoothState?
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.
...
2
votes
1
answer
678
views
smoothstate.js - back button sometimes doesn't work?
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 ...
3
votes
1
answer
11k
views
Contact Form 7 throws 'wpcf7.initForm is not a function' error when loading page through AJAX (smoothstate.js)
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 ...
1
vote
0
answers
153
views
Stopping pacejs on smoothstate links
I'm trying to stop pace.js to load when the user clicks on Smoothstate links.
I thought calling Pace.stop inside smoothscroll on events, using the ignore setting but still the event is triggered.
$...
0
votes
1
answer
223
views
smoothstate alternate reverse not animating
Im using the plugin but right now im stuck on reversing the animations which drives me crazy.
I'tried so much now that I really cant figure out whats going on.
The starting animation works perfect, ...
0
votes
1
answer
163
views
ScrollTo: #div tag instead of top of page
I am trying to use the ScrollTo function in this little snippet of code so my page scrolls to an ID div tag instead of the top of page "0". Any help would be much appreciated!
Here is the code I'm ...
1
vote
1
answer
2k
views
Using SmoothState.js with Wordpress but maintain body classes
Has anyone successfully used SmoothState.js with Wordpress?
Particularly maintaining the classes that are applied to the body tag?
I have applied SmoothState to my Wordpress site but the major ...
0
votes
1
answer
642
views
SmoothState.js and FullPage.js is not working well together
I spent like 3 hours now, and couldn't move an inch in right direction.
Here is my Javascript,
jQuery(document).ready(function($){
'use strict';
var $page = $('#fullpage'),
options = {
...
1
vote
1
answer
239
views
SmoothState keeping js files for all pages, some functions being repalced
Lots of pages on my site have their own javascript files that are included in their respective pages.
SmoothState provides the onAfter handler to re-initialize plugins, and some of these pages' ...
0
votes
0
answers
3k
views
Going back to previous scroll position when clicking the back button
how do I go back to my previous scroll position when clicking the back button using the smoothState plugin?
P.S. I'm fairly new when it comes to JS so I appreciate any help I can get. Thanks.
0
votes
1
answer
199
views
Smoothstate causing jQuery function to runs once per session
I have a jquery function for my index.html page that runs when the page is ready. Its grabs an articles supporting image and follows the mouse cursor within a predefined area. However, upon visiting ...
1
vote
1
answer
565
views
smoothState.js: Add class to #main wrapper
I am using smoothStates default settings and I wanted to know if I can add a class to the main wrapper so I can change the background color of the site? I don't want to add another div under main as ...
0
votes
2
answers
1k
views
While using smoothstate.js submitting form causes smoothstate to fire
I have site using smoothstate.js on every page. on a couple of pages, I have a modal box pop up with a form. Those forms work just fine.
On another page, I have a basic form included in the html. ...
0
votes
0
answers
125
views
How to initialize JS most efficiently?
I am using AJAX to load pages, and am wondering what is the most efficient way to initialize JS that is stored in an external sheet on every page load. I have just made a bunch of functions and one "...
0
votes
0
answers
391
views
Using history.pushState to put an additional page into smoothState.js history doesn't work
How would I put a dynamic page created with Ajax to the smootState.js history. I've tried using history.pushState() but that didn't seem to work. For example, with an anchor you land on a page named ...
1
vote
1
answer
350
views
$.ajax submit on the same page and form works only the first time
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/...
1
vote
1
answer
1k
views
Post [object%20HTMLInputElement] 404 not found on $.ajax submit
I am having a slight issue trying to implement smoothState.js (https://github.com/miguel-perez/smoothState.js) with my JSP backend.
I get this error when I try to submit the form for the first time. ...
1
vote
0
answers
638
views
Scrollify not allowing other pages to scroll
I have a website I'm currently developing and I'm using Scrollify for one of the pages. In particular, my project sections.
All the pages work fine until I visit my Project page. After that, none of ...
1
vote
1
answer
557
views
How to Disable smoothState.js from WooCommerce Add-to-Cart Buttons and Login/Register Links
I've just implemented smoothState.js on a WooCommerce-powered store I'm currently working. Live demo can be found by following this link: http://demos.oosh.co/bt
The only problems I'm still having ...
0
votes
1
answer
379
views
How to activate smoothState.js only on certain links
I know that there is a way to disable smoothState.js for some links by adding:
blacklist: '.no-smoothState'
But is there a way to disable it for every link and then selectively pick the links you ...
0
votes
1
answer
135
views
exit animation will only work if start animation is in progress
I have this problem where the animation will only exit if the start animation is still in progress. Once the start animation finishes and I click another link it still adds the reverse class but only ...
1
vote
1
answer
649
views
Smoothstate.js and Django - Form POST only triggered on second click
Im currently trying to integrate Smoothstate.js into my Django Project.
I'm using the js code snippet from the smoothstate.js github site.
$(function(){
'use strict';
var options = {
prefetch:...
2
votes
1
answer
1k
views
ajaxRequest.success is not a function with smoothState.js
I'm trying to implement smoothState.js into a custom WordPress theme but when i make a hover on my navigation, i can see this error :
Uncaught TypeError: ajaxRequest.success is not a function
fetch @...
0
votes
1
answer
7k
views
Cannot read property 'addClass' of undefined with smoothState.js in Wordpress
I'm trying to implement smoothState.js into a custom WordPress theme. I'm flummoxed. I feel like my code is correct according to the smoothState documentation, but it's still producing an error. But I'...
0
votes
2
answers
2k
views
How to add loader to SmoothState.Js page change
I need page loader to every page when all the contents are fully loaded.
What I need :
$(window).load(function(){
$('#loading').fadeOut();
});
Is there any solution to use this simple function to ...
3
votes
1
answer
498
views
High amount of http requests when combining lazySizes and smoothState plugins
We're using the JS plugins lazySizes (https://github.com/aFarkas/lazysizes) and smoothState (https://github.com/miguel-perez/smoothState.js) on our agency site and while they work together, there is ...
0
votes
1
answer
391
views
Change background colors with smoothState.js
I have a test site with 5 pages, each page has a different background colour depending on the page you are on.
When I use the default settings that come with smoothState.js, the background colour ...
1
vote
0
answers
286
views
Using jQuery in combination with javascript electron
UPDATE: while I was pressing enter in StackOverflow is accidentally got submitted! Updating the Post at the moment
Update 2: complete post finished
I currently have a problem combining Javascript ...
0
votes
1
answer
2k
views
smoothState.js conflicting with other plugins
I have managed to implement the smoothState.js plugin on my website and it works nicely, but my other very simple jQuery plugin will not work, which starts with:
$(document).ready()
I need to refresh ...
1
vote
0
answers
795
views
Smoothstate: simoultaneously show old and new content for smooth page transitions
I´m using smoothState.js for page transitions on a wordpress project. To built similar transitions as seen here, it´s necessary to see both the new and old content simoultaneously. According to the ...
1
vote
1
answer
377
views
SmoothSate.js issue
I'm trying to boost my online store's performance by using SmoothState.js. It work's very well, until I come to the part in the tutorial where I'm working on the functions.js file.
What happens when ...
0
votes
1
answer
576
views
Get/Keep Previous Page's URL with SmoothState
I am using https://github.com/miguel-perez/smoothState.js and trying to create an if/else statement using the previous page's URL. I tried storing the pathname in a cookie, but I also need to use the ...
0
votes
1
answer
375
views
Smoothstate.js simultaneously show to new and old pages
This is a reference to the answer provided here: Is it possible to show both the new and old pages simultaneously?. I am attempting to display the old content while the new content slides in.
I added ...
0
votes
1
answer
239
views
SmoothState.js Show Current Page Until Next Is Loaded
I am using smoothstate.js on WordPress and I'm trying to figure out how to keep the current page active until the next is fully loaded: so the new page will display behind as the current page is ...
1
vote
1
answer
431
views
Getting smoothState.js and Foundation 6 to work together
I'm working on a Foundation 6 project and am trying to make it work with smoothState.js.
I managed to get smoothState itself to work, but now Foundation appears to be broken. Specifically, the page ...
1
vote
1
answer
451
views
Which one (SmootState.js or Angular.js) is proper way/tool to add smooth transition effects between pages of a classical website?
I have a classical multi-page website. Transitions between pages is hard-way, e.g. almost every page is loaded fully via anchors without using javascript.
I want to get smooth transition effects ...
1
vote
2
answers
1k
views
SmoothStateJS: how to keep an element from refreshing on page change?
I am using SmoothState.Js to load new pages on clicks. Since on every one of those pages the logo stays in the same place/size, I would like for the logo to not refresh and not fadeout/in on page ...
1
vote
2
answers
6k
views
Reinitializing page scripts after SmoothState.Js page change
I am using SmoothState.js for page transitions and it works fine and loads the new pages with ajax. However, I have JS scripts on each page that need to be reinitialized and I have not been able to ...
3
votes
0
answers
393
views
Smoothstate js keeps reloading scripts on repeat
I'm using smoothstate js for changing pages via ajax and when I click on a link, the page loads successfully and the plugin works, however, it calls my js scripts over and over again and eventually ...
0
votes
1
answer
251
views
Smoothstate : Get $(document) in onReady
How to get to $(document) in the onReady method ?
I've tried with smoothState.cache[smoothState.href] but couldn't make it works.
(fantastic plugin)
Thanks