How to Webflow: Page transitions - Tutorial (2019)

  Рет қаралды 15,452

pixelgeek

pixelgeek

Күн бұрын

In this tutorial, I'll show you how to add page transitions on your site. It requires a bit of coding and Webflow interactions.
#webflow #webdesign #tutorial
Here's the code:
$('').click(function (e) {
e.preventDefault();
var goTo = this.getAttribute("href");
setTimeout(function(){
window.location = goTo;
},1000);
});
Join the Pixel Geek Community:
pixelgeek.community
-------
I've been a web designer since 1995 and I've learned a lot about this industry. Now that I've found my dream job at Webflow, I want to share some of my experiences and knowledge with you in hopes you can find your dream job as well.
The purpose for this channel is to help you design and build better websites, learn more about the business of web design, and empower you to inspire others in this unique creative industry.
-------
Like what you see? Subscribe here:
kzbin.info_...
-------
/ thepixelgeek
/ pxlgk
pxlgk.com

Пікірлер: 111
@lalalotteh
@lalalotteh 3 жыл бұрын
O MY GOD THIS IS LIFECHANGING REALLY, THANK YOU
@gagestillalive
@gagestillalive 4 жыл бұрын
Nelson your tutorials are always so helpful, was able to make some killer CMS Project transitions after watching this! Thank you!
@pixelgeek
@pixelgeek 4 жыл бұрын
you're welcome. Glad to have helped 😁
@vagifmammadov8946
@vagifmammadov8946 3 жыл бұрын
Thank you so much, man! Really helped me with this video.
@pixelgeek
@pixelgeek 3 жыл бұрын
Glad it helped!
@StefanPoulos
@StefanPoulos 4 жыл бұрын
This is so helpful, thank you Nelson! It's cool that it works with combo classes also. I added a "page-transition" combo class to other things like header logo, buttons, etc and it works great.
@pixelgeek
@pixelgeek 4 жыл бұрын
glad to have helped :)
@akilorosky
@akilorosky 4 жыл бұрын
Hey Stefan! I'm trying to add the transition with combo classes but its not quite working out for me - How did you get yours to work? any help will be much appreciated ! Thanks EDIT: I just figured it out. It might help someone who's doing it how I did it. It is a long method and there's probably better ways to do it but this is what works for me 1. After making the transition in webflow i set a class called "transition" which i then added as a combo to all elements I wanted to trigger the page transition. I also used "transition" as the class for jQuery to target. 2. I then made a button (it could be any element really) and added the "transition" class to it and then set it to display none. 3. I set that "transition" element I made as a trigger and chose the option to affect all elements with this class in the interactions panel. 4. After publishing , all elements that have the class "transition" or have a combo class with "transition" included will trigger the animation. Hope that helps!
@luciddoggo5094
@luciddoggo5094 4 жыл бұрын
@@akilorosky Thank you man you dont know how much that helped for my school project.
@akilorosky
@akilorosky 4 жыл бұрын
​@@luciddoggo5094Happy to help! I can't even count the number of times I've been saved by something I learned on here
@prmade787
@prmade787 4 жыл бұрын
Pretty awesome and simple. Thanks, Nelson.
@pixelgeek
@pixelgeek 4 жыл бұрын
Thanks for watching 😁🙇🏽‍♂️
@JoshuaKMedia
@JoshuaKMedia 4 жыл бұрын
What is you and your wife's favorite restaurant to eat at? You deserve a night out for making everyone else's life a little easier. Thank you Nelson.
@pixelgeek
@pixelgeek 4 жыл бұрын
awww thanks for the offer. :) Instead of feeding us, I would strongly suggest sending that money to this charity: donate.wck.org/give/236738/#!/donation/checkout
@aaronbobby3819
@aaronbobby3819 3 жыл бұрын
I know I am kinda off topic but do anyone know of a good place to stream new tv shows online?
@grahamkameron3248
@grahamkameron3248 3 жыл бұрын
@Aaron Bobby Lately I have been using Flixzone. Just google for it :)
@damiantommy8966
@damiantommy8966 3 жыл бұрын
@Graham Kameron yup, have been watching on Flixzone for years myself :D
@aaronbobby3819
@aaronbobby3819 3 жыл бұрын
@Graham Kameron Thanks, I signed up and it seems like a nice service :D Appreciate it!
@wadood1299
@wadood1299 4 жыл бұрын
Awesome tutorial!!! 👍👍👍
@RalucaM
@RalucaM 4 жыл бұрын
Hah! Perfect timing for this video. I made a transition like this but it was jarring. I'll try with custom code too.
@pixelgeek
@pixelgeek 4 жыл бұрын
Glad to have helped :)
@dunkTheFunk
@dunkTheFunk 4 жыл бұрын
Thansk Nelson, that video was really helpful.
@pixelgeek
@pixelgeek 4 жыл бұрын
You're welcome!
@niccohirajeta
@niccohirajeta 4 жыл бұрын
Thanks Nelson! I had the hardest time trying to figure out why on page load, the "overlay" would flicker away and then play out. I'd recommend setting your Fixed position to FULL instead of TOP. Doing this fixed it for me!
@pixelgeek
@pixelgeek 4 жыл бұрын
can you post your read-only link? I'll look into it.
@KonstantinosPenlidis
@KonstantinosPenlidis 4 жыл бұрын
Works great, thanks!
@pixelgeek
@pixelgeek 4 жыл бұрын
Glad it worked out for you
@KonstantinosPenlidis
@KonstantinosPenlidis 4 жыл бұрын
@@pixelgeek hey, that's a far fetch question, but have you ever had some links not triggering the transition, when in the mobile breakpoint? This is what happens to me and can't fix it whatever I tried :/
@marvin..m
@marvin..m 4 жыл бұрын
Great tutorial, as always! Can you possibly do a similar tutorial with one page fading into the next? Not having any coding experience, and I’m sure many other Webflowers are in the same boat, I don’t know how to adapt this particular configuration to what I need. I think you piggy-backed a fade transition with a window-shade one in an older video but I can’t seem to find it. Or, if not, could you please post a link to the older video? Much appreciated.
@deluxestockholm6123
@deluxestockholm6123 3 жыл бұрын
Thank you :)
@thewebart
@thewebart 4 жыл бұрын
Thank you very much.
@pixelgeek
@pixelgeek 4 жыл бұрын
my pleasure :) Thanks for watching
@MyDistortedWorld
@MyDistortedWorld 4 жыл бұрын
Nice one Nelson!!!
@pixelgeek
@pixelgeek 4 жыл бұрын
Thanks 😁👍🙇🏽‍♂️
@jlitzphotography1805
@jlitzphotography1805 3 жыл бұрын
@pixelgeek hi Nelson, thank you so much for the tutorial. I am having issues with it though, the outro doesn't seem to play and the jquery code displays on the page after clicked. Any thoughts?
@sven-erikslattedalen7302
@sven-erikslattedalen7302 4 жыл бұрын
Hi Nelson. This is awesome! Thank you! A quick question for you. Is it possible to do this page transition using scroll, instead of click? I've made a zoom in scroll interaction for a Hero section, but when the zooming is done, I would like to have a smooth page transition. Do you have any advice for me on this? Can I use the same code as you did, just click(function (e) with scroll(function (e)?
@nicoeiben4272
@nicoeiben4272 3 жыл бұрын
Thank you so much for this nice tutorial. Works great on my site. The only thing that is bothering me is when I go back in browser after clicking to the next nav-link it leads me back to the full size transition and I would have to click two times back to get to where I was. Any ideas how this can be solved?
@watsonbarry5666
@watsonbarry5666 4 жыл бұрын
Thanks Nelson, I love your tutorials! I have a question though. I have 5 pages on my site, and after publishing the 'load out' animation only plays for the first pages, but then stops after that. This creates a jarring experience since only the 'page load' animation plays from that point. Any suggestions on how to fix it? It's so frustrating since it works initially, but then stops.
@Tenacitae
@Tenacitae 4 жыл бұрын
Hey there, first of all thank you for this tutorial and many others. I'm very grateful and it's been helping me tremendously. This transition tutorial seems to work well on all browser except on Safari/iPhones (iPhone 8 Plus). The javascript seems to work as there is a pause before the next page load. But the transition that's suppose to happen once a button is clicked doesn't happen. Any ideas...?
@alexlakas1
@alexlakas1 2 жыл бұрын
This is awesome, really appreciate the video! Has anyone else had issues with flickering custom cursors when using page transitions?
@techstar4775
@techstar4775 4 жыл бұрын
Thanks myman! :D
@pixelgeek
@pixelgeek 4 жыл бұрын
My pleasure 😁👍
@laurend7624
@laurend7624 2 жыл бұрын
Thank you SO much, I needed this!! The only thing is the code is visible at the footer of my published site? How do I hide this?
@samueljaramillo7144
@samueljaramillo7144 4 жыл бұрын
what if you have a subclass, do you have to specifiy that in the code? thanks Nelson you rock!
@jan6743
@jan6743 3 жыл бұрын
Hi, could you create a tutorial with lottie page transitions on animated pages? There is a tutorial on the webflow forum, but I think it only works on static pages.
@goncalobranco
@goncalobranco 4 жыл бұрын
I did exactly this and it's working perfectly but I found a bug with this code. Apparently, when you hit the 'back button' from the browser (desktop or mobile) and when you land on the previous page, the animation doesn't start so in my case I have a panel covering all my page...is there any way to make the same animation for the back button? Would appreciate any help, thanks!
@VetlyApp
@VetlyApp 4 жыл бұрын
This works great for the most part. I did find that if you're linking from a cms page to a static page, the outro animation will not run.
@pixelgeek
@pixelgeek 4 жыл бұрын
Hmmm.... 🤔 Did you all the custom code on all pages? Including the collection template pages?
@antoniojansevanrensburg7637
@antoniojansevanrensburg7637 3 жыл бұрын
Hi PixelGeek, can I use this same method on Section transitions? Instead of the entire page, if I clicked for instance "About Me" on the Navigation - The "Process" section will change to "About Me", leaving the rest of the information on the page.
@olehansen6568
@olehansen6568 3 жыл бұрын
Can I make this work if I'm linking to a specific section (anchor link) on another page?
@svnbit8408
@svnbit8408 4 жыл бұрын
Can anyone confirm, will this work on cms pages? Does it work on longer page load time?
@jacevans9705
@jacevans9705 4 жыл бұрын
This is awesome, thanks! When you add the 'curtain up' transition why did you do that on page load rather than set it to happen once the previous animation finished just out of interest?
@pixelgeek
@pixelgeek 4 жыл бұрын
Thanks for watching 😁🙇🏽‍♂️ here is what happens... 1. Click on link 2. Outro animation starts 3. Browser timer delay starts 4. After 1 second, the browser goes to the new page 5. The new page loads 6. The intro animation starts This is why you cannot combine the outro and intro animations. Hope this clears up any confusions
@svnbit8408
@svnbit8408 4 жыл бұрын
@@pixelgeek when you say "load" to you mean content is fetched? Is there anything limiting this from working on longer page load times? Or cms pages for that matter? Not quite sure if defining "before" or "after page loads" in webflow does what. I see loaders on before or after and it seems they aren't linked to actual page loading, just faked with a delay. I hope that makes sense, not sure if I'd need to add code specific to how long the loader(or outgoing transition stalls, incoming transition delays) displays itself. Thanks bro 👍
@user-zy2ch8ds4f
@user-zy2ch8ds4f 4 жыл бұрын
Hello Nelson, implemented it on one of his projects, everything works cool and looks good, but at the moment of appearance of a new page, the animation with an overlay is launched late and the content of the page is visible for a fraction of a second... please help me get rid of this. Tried to run the appearance animation before the page loads, still does not work correctly
@pixelgeek
@pixelgeek 4 жыл бұрын
Can you post your read only link?
@kareemabulaban9456
@kareemabulaban9456 3 жыл бұрын
quick question! If i have multiple link classes but i want to apply this to multiple classes, should i duplicate the custom code and just change the target class? or is there a way to target mutltiple classes within that one custome code script. ie: $('.nav-link;.cta-link').click(function (e) { e.preventDefault(); var goTo = this.getAttribute("href"); setTimeout(function(){ window.location = goTo; },1000); });
@pixelgeek
@pixelgeek 3 жыл бұрын
yes. you're almost right. but instead of a semi-colon between classnames, use a comma. for example $('.nav-link, .cta-link') hope this helps :)
@kareemabulaban9456
@kareemabulaban9456 3 жыл бұрын
@@pixelgeek you’re an absolute legend. Thank you!!
@sabrinado5734
@sabrinado5734 4 жыл бұрын
how do i add this to multiple classes? ('.example' , '.example2') ?
@pixelgeek
@pixelgeek 4 жыл бұрын
Like this ('.example, .example2') hope this helps 😁
@olehansen6568
@olehansen6568 4 жыл бұрын
2 questions. 1) If I want multiple triggers between the $('') how do I do? Let's say I have a trigger called NAVLINK and BUTTONLINK that I want to trigger the page translation with (one of them in the navbar and the other somewhere on the page). 2) Does it work with combo classes? Thanks and great tutorial as always.
@pixelgeek
@pixelgeek 4 жыл бұрын
Great question. To add multiple class names, just do the same thing you do with sending emails to multiple people. Add commas. Example: $('.className1, .className2, .className3') Hope this helps :)
@olehansen6568
@olehansen6568 4 жыл бұрын
And does it work with combo classes? Keep these videos coming. Great tutorials 💪
@pixelgeek
@pixelgeek 4 жыл бұрын
@@olehansen6568 yes. Just use the parent classname
@arnoclaude317
@arnoclaude317 4 жыл бұрын
*Hears that custom coding is needed* Ight, Imma head out.
@pixelgeek
@pixelgeek 4 жыл бұрын
Just watch. It's easier than you think 😁
@vinsongotingco5753
@vinsongotingco5753 3 жыл бұрын
Thanks so much for this Nelson! Quick question tho. This works extremely smooth on Safari, but on Chrome the animation flashes white for a split second before loading the next page. Is there any way to fix this?
@deejman
@deejman 3 жыл бұрын
Yeah its happening to me too?
@tjarcovanraalte939
@tjarcovanraalte939 3 жыл бұрын
@@deejman same, even when icreased the time in the code
@isabellal1434
@isabellal1434 2 жыл бұрын
Same here
@samueljaramillo7144
@samueljaramillo7144 4 жыл бұрын
Hi Nelson, when I publsih my website I get the custom code being displayed on top of the page as a text
@pixelgeek
@pixelgeek 4 жыл бұрын
can you post your read-only link so i can look into this?
@samueljaramillo7144
@samueljaramillo7144 4 жыл бұрын
@@pixelgeek I fixed it adding tags thanks so much! your stuff is really helpful and awesome
@pixelgeek
@pixelgeek 4 жыл бұрын
Now reviewing my video... How many times do I say "mm'kay?" 😅😅😅 I need to make a mental note of this and stop that.
@JenniferFarel
@JenniferFarel 4 жыл бұрын
Your tutorials are so good I didn't even notice!
@davekatz8369
@davekatz8369 3 жыл бұрын
@pixelgeek My intro animation isn't triggering and I'm not sure why.. Can you see what's going on: preview.webflow.com/preview/daverino?preview=f4513585fefef5cb371001cdfab581f4&mode=preview
@sebastianfischer4332
@sebastianfischer4332 4 жыл бұрын
I don't get it... Either the intro or the outro is working, but not both. I can't figure out what's the issue here. Any idea what could be the problem?
@pixelgeek
@pixelgeek 4 жыл бұрын
can you please post your read-only link?
@sebastianfischer4332
@sebastianfischer4332 4 жыл бұрын
@@pixelgeek thx already figured it out myself.
@paulharrison8583
@paulharrison8583 4 жыл бұрын
does that delay code working for everyone?? its not working for me at all??
@pixelgeek
@pixelgeek 4 жыл бұрын
can you provide your read-only link?
@fuegocandela
@fuegocandela 4 жыл бұрын
I love u
@pixelgeek
@pixelgeek 4 жыл бұрын
Thanks for your support! 🙇🏽‍♂️😁
@crarls27
@crarls27 4 жыл бұрын
Oops... this doesn't work at all in my browser. Just a little blip of the overlay div shows for a second and then nothing.
@pixelgeek
@pixelgeek 4 жыл бұрын
Can you reply with your read only link? I'll look into it
@crarls27
@crarls27 4 жыл бұрын
@@pixelgeek Nelson you are really the best. I thank you. Forgot to come back and edit my comment! I figured it out and the issue was with the class name - using capital letters when I shouldnxt have.
@mariorruiz
@mariorruiz 4 жыл бұрын
What happens when you open this page on mobile? Will it still work?
@pixelgeek
@pixelgeek 4 жыл бұрын
This interaction/trick will still work for mobile 😁👍
@marvin..m
@marvin..m 4 жыл бұрын
Can you please do a tutorial with more a succinct explanation of jquery? Please go into greatest depth so that we can have more control since jquery plays a huge part in customization of sites via webflow. Knowledge is power, after all. Thank you
@pixelgeek
@pixelgeek 4 жыл бұрын
I don't think I would be the best teacher to explain jQuery. I'm not that good with coding. Plus there are lots of videos and resources to explain it better than me.
@marvin..m
@marvin..m 4 жыл бұрын
I think you would be the perfect person to explain how a non coder goes about finding and implementing jQuery and figuring out how the code works. Coders get way to technical. For example, if I learn to drive a car I don’t need to understand how turn signals work; just how to use them. Just tell us what you do know and how you choose and implement the code.
@pixelgeek
@pixelgeek 4 жыл бұрын
That's what I'm doing. 😁👍 Just give me specific suggestions.
@marvin..m
@marvin..m 4 жыл бұрын
Okay, here are the things I’d like more insight regarding: Once you decide the kind of effect you’re looking for, how do you go about finding the right code and how do you know if the code actually works. When you look at the code how do you know what it’s saying? How do you know which part of the code are the variables. Is there a chart that breaks this down and how can I access this? I’d love to see a line by line breakdown explaining the significance of each character. I don’t want to learn to code, I just want to be able to understand what it’s saying. All the online courses are teaching how to code. That’s my problem. If you see an action on another site, how do you go about locating the code and how much of the code do you copy? When you explain these things please realize that people like me know absolutely nothing and please explain not only what you are doing, but more importantly, the reasoning behind each action. I hope this helps you understand what I’m looking for. Thanks again for putting out these videos. I really like this shortened format which focuses in on a particular aspect. The short tutorials from WF University are very well done and funny, but they skip over a lot of pertinent details assuming the viewer already has certain knowledge. Your longer videos covered too many divergent topics and there didn’t seem to be any way to know what the content was unless I watched each one. Thanks again.
Creating an award-winning page transition in Webflow using GSAP
14:45
Smart Sigma Kid #funny #sigma #comedy
00:26
CRAZY GREAPA
Рет қаралды 10 МЛН
Does size matter? BEACH EDITION
00:32
Mini Katana
Рет қаралды 20 МЛН
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 166 МЛН
Каха и суп
00:39
К-Media
Рет қаралды 6 МЛН
The Best Method of Scroll Snapping! Easy Webflow Interactions
7:50
Anansi Creative
Рет қаралды 34 М.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 927 М.
Perfect Page Transitions in Webflow (2021)
8:12
Timothy Ricks
Рет қаралды 75 М.
How to Webflow: Text reveal masking on scroll
6:58
pixelgeek
Рет қаралды 16 М.
How to Webflow: Infinite marquee - Tutorial (2019)
10:37
pixelgeek
Рет қаралды 28 М.
How to Properly Layout A Website (For Beginners)
14:50
The Website Architect
Рет қаралды 542 М.
POR QUEEEEE DIVERTIDAMENTE !!! #shorts
0:15
LARISSALADA - LARISSA GOMES
Рет қаралды 19 МЛН
Some muslims mistakes #muslimfemale #hijab
0:11
Asel Mustafaeva
Рет қаралды 17 МЛН
Машина Жириновского.  #shorts Лиса рулит
0:52
Лиса рулит shorts
Рет қаралды 5 МЛН
SMART idea and very USEFUL 📱 #camping #survival #bushcraft #outdoors
0:14
Ăn Vặt Tuổi Thơ
Рет қаралды 16 МЛН
Good-natured poor girl. Helping others
1:00
Son Hero
Рет қаралды 3,3 МЛН