Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Sticky nav background color change on anchor

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #248348
    modiophile
    Participant

    I am trying to replicate the effect seen here, http://livearealabs.com/work/sees-candies whereby the top sticky nav changes colors dependent on which section its on. I see the developer here is using transform-y percentages, but relative to what?

    Thanks!

    #248369
    Paulie_D
    Member

    Looks live it’s javascript…not CSS.

    Whenever you see inline CSS like that…assume JS.

    #248373
    Shikkediel
    Participant

    I see the developer here is using transform-y percentages, but relative to what?

    With a transform, that is relative to the element itself. So 100% is it’s own height.

    #248434
    modiophile
    Participant

    Can I get a mod to move post to the JS forum? Still wonder how this is being done.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.