vigu
Oct 29, 2020

It depends on your requirement.

Ideally, the parent element can be an element from where you wanna initiate the scroll. The child element will be an element which is the destination.

Technically in most of the cases, parent element is the outer most element and the child is nested inside the parent.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

vigu
vigu

Written by vigu

Goal: I’m making a friendship with HTML, CSS & JS | Mission: Trying to write what’s under the hood of UI tech

No responses yet

Write a response