

But I don't really want anything to be zooming in so I'm just going to delete scale as well.Įasing: You can set any valid CSS easing property or you can define a custom one here with cubic bezier, but it also will take “ease” “ease-in” “ease-out” “linear” or anything like that. So if you want for example, your button to start small and then scale up and in (sort of for like a zooming in effect) you can set it to something lower than 1 and it will animate to 1. I don't know why you would need anything else but 0, so we don't really even have to worry about that one either. Opacity: The default is 0 - the animation starts at 0 opacity. So I’m actually just going to get rid of that one, but it can be done. Rotation: You can animate rotation - I would not recommend that you do this though as I think it would look pretty cheesy if a user is scrolling down the page and things are rotating into view. So 500 milliseconds for example, would be half a second.

I prefer to use pixels.ĭuration: The duration is just how long the animation is going to take in milliseconds. You can put in any valid CSS distance like pixels, percentages, rems, etc. So you can put in a value of bottom, top, left, or right.ĭistance: Distance is just the distance that the element is going to be animated from. Origin: Where the element is going to be animated from. Then in a new script tag, you should have window.sr equals ScrollReveal (this is what initializes Scroll Reveal).īelow I have listed all of the properties that can be defined and customized in ScrollReveal and I just want to run through each one of them really quickly. You should now have the script source coming from slashscroll reveal and we're targeting at version 4. I'll have those in the description, just go ahead and copy and paste it into your site. To get started, all you have to do is just drop in the Scroll Reveal script tags in the header.
Squarespace text blocks css how to#
How to implement Scroll Reveal on Squarespace So I really want to create this tutorial to be kind of the go-to guide for Scroll Reveal on Squarespace. It's a pretty good tutorial, but it doesn't go into very much depth. Right now the go-to tutorial for this (implementing ScrollReveal on Squarespace websites) is a tutorial by Niccolò Miranda. In this example, I have set up a fictional construction site and as I scroll down the page elements are fading into view. Today I'm going to be covering the best way to do fade-in scroll animations on Squarespace.

What's up! Chris Schwartz-Edmisten here from Schwartz-Edmisten Web Design. Don’t Want to Watch the Video? Read the Post!
