I'm wondering if it is possible to "teleport" a div into another part of the DOM using jQuery on scrolling.
For example, let's say I have an article:
Title
Subt 1
Div area 1
Content 1
Where subt
is subtitle and div area
is where the div will be included.
So I need to achieve this result:
While the user will be scrolling, the div will be jumping from area to area
**-- If I scroll from here --**
Subt 1
Div area 1
Content 1
Subt 2
Div area 2
Content 2
Subt 3
Div area 3
Content 3
**-- To here --**
Subt 4
Div area 4 -- The div will appear inside of here --
Content 4
I don't want the div to appear at all places at once, it's just that it will follow the scrolling moving from one area to another one. I not even know how search this in google, that's why I'm asking.
Thx in advance