JS & Code in Wordpress

Out of context: Reply #6

  • Started
  • Last post
  • 21 Responses
  • mg331

    monNom - Looking at your url structure...

    http://www.hi.agency/deck/#p1
    http://www.hi.agency/deck/#p2
    http://www.hi.agency/deck/#p3
    etc...

    Are these individual "sections" within an html page that is "deck," or are #p1, #p2 individual html pages that are being served up in this view?

    That stuff always confuses me, especially when it comes to really smooth page-to-page transitions that come with animation, and the url structure visibly changes from, say, url . com/page1.html to page2.html.

    Any insights on that?

    Really nice work on what you shared.

    • Those are in-page anchors. CSS has a :target attribute that you can leverage to slide the page on changing the anchormonNom
    • see line 200 here: view-source:http://w...monNom
    • http://www.hi.agency…monNom
    • OK - so it's a huge page that extends in all directions out of the viewport, basically?mg33
    • My assumption is that it's a one-pager just being moved around.dbloc
    • well I was a little late to that game. Didn't see any comments when I posted mine.dbloc
    • Yes. Though there's nothing stopping you from making the 'pages' iFrames and moving those around.monNom
    • you might also just use "scroll-behavior: smooth;" on the body instead of :target and translatemonNom

View thread