What does anchor data binding actually do?

I play with Skrollr and, for the most part, it seems pretty intuitive, the only thing that attracts me is the data binding attribute. In most cases, I don’t need this, but when I look at some examples, they usually turn on, and I am confused as to what he is doing. Does this mean that for this purpose, when the Skrollr data- (pos) attributes are triggered?

+4
source share
1 answer

data-anchor-target When using Skrollr.js, you usually use one of two methods as inputs for starting and stopping scroll controls:

  • Absolute positioning related to the beginning or end of the entire document.
  • , , .

data-anchor-target . . CSS (.class # id). data-anchor-target , data-bottom-top, . data-top-bottom , - . ?

pictorial

, , . anchor-target.html. , , ? (: CSS !0 . , ! .)

+3

Source: https://habr.com/ru/post/1540309/


All Articles