Comments (4)
Thanks!
Yes, the animations should always complete before the new page is revealed. It's possible you have an older version, where swup had a bug and the end of the transition of elements inside of your animated element was detected as the end of transition of the parent element. The latest version does not have this issue.
In case that update doesn't help, please provide your code or demo.
from swup.
Was there any resolution to this issue? I am having a similar problem. The transition works the first time but after the page is cached the transition is ignored. Any insight would be great!
I second the compliment, Swup is great!.
from swup.
Thank you!
From my experience, those symptoms indicate that it's not swup issue and you are most likely making mistake somewhere in you code. Unfortunatelly, that means I cannot help you without seeing your code or demo.
Can you please provide that?
from swup.
I've seen people making several mistakes when getting this kind of behavior:
-
Using CSS
@keyframes
+animation
property, instead oftransition
property + defining different styles in the transition state. CSSanimation
can be used for animating elements in the transition, but it cannot be used for swup's timing. -
Using
[class^="a-"]
selector wrong. The selector selects any element whose class attribute begins with string 'a-'... in short, classa-class and-other
is selected, but classand-other a-class
is not. -
Not having the same structure on each page - missing elements for swup to replace in certain pages.
Hope this helps. Closing. Feel free to reopen with demo/code example.
from swup.
Related Issues (20)
- contentReplaced and willReplaceContent being fired on the homepage
- Triggering link:click twice seems to interfere with content:replace and animation:in HOT 3
- Cannot use import outside of modules
- @swup/js-plugin: ^3.1.1 and @swup/scripts-plugin: ^2.0.0 break Astro formatting HOT 6
- Think about chances for optimizations when clicking a link during a visit HOT 9
- Suggest changes to this page links from the Documentation result in a 404 on GitHub HOT 1
- Rethink tests setup for official plugins HOT 5
- pageA goto pageB; but,with diffrent link style; when back to PageA,the links style is losted
- [Bug]: Undefined link href on Safari 13.1 and lower HOT 10
- [Feature Request]: Add way to easily listen to ALL hook events HOT 3
- [Feature Request]: Expose AbortController to be able abort request programmatically HOT 20
- Feature: Allow aborting running visits HOT 1
- Ignore errors in user hooks HOT 1
- Importing helpers from CDN module HOT 2
- History navigation ignored when using custom link selector HOT 5
- [Bug]: URL in `visit:start` inconsistent between normal and history visits HOT 4
- Feature: Store parsed html document in visit object HOT 11
- [Solved]: New values in <head> are not updated HOT 2
- [Bug]: [data-swup-ignore-script] issue with Contact Form 7 in Wordpress HOT 4
- Implement tests for official plugins
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swup.