Search

Back

Copy Link

Library

/

Free

/

49

Snap Scroll Effect

49

Snap Scroll Effect

FREE

Not loading? Preview

Made by

FramerUniversity

override

scroll

Override

Snap Scroll Effect

Copy

Override

Copied to Clipboard!

Instructions

This effect has two overrides. One for the wrapper and another for the children.

Please follow Framer University's tutorial or check the remix link for more details - https://youtu.be/UXe3Mj5OQJE

Code Preview

import type { ComponentType } from "react"
//Child Element
const style = {
    scrollSnapAlign: "start",
    scrollSnapStop: "always",
}

export const withChild = (Component): ComponentType => {
    return (props) => {
        return <Component {...props} style={style} />
    }
}
//Parent Wrapper
const styleParent = {
    scrollSnapType: "y mandatory",
}

export const withParent = (Component): ComponentType => {
    return (props) => {
        return <Component {...props} style={styleParent} />
    }
}

Terms of Use for Free Assets

By accessing and using this Framer Override Library, you agree to the following terms:

All code snippets provided are available for your personal and professional use. This includes personal websites, client projects, and other website projects in Framer. You are strictly prohibited from sharing, redistributing, selling these code snippets, or creating derivative works for resale or distribution. Unauthorized sharing, distribution, or selling of these code snippets is a breach of these terms and may result in termination of your access to this library, along with potential legal action.