Streaming live at 10am (PST)

Loading page interaction question


#1

I want wonder if this interaction is possible in WF? if yes could someone help me how to setup?

http://www.habib-fadel.com/en/artwork/

click on an artwork notice how there is an animation /motion and the web address is different?
How do I do this?

Thank you and love you guys,

Zack


#2

You can do it with JavaScript's history.pushState and history.replaceState.

Here is the part of the JavaScript file that should be doing it:

        s.prototype.pushState = function() {
            i.len++,
            history.pushState(this.state, this.title, _ && "/" !== this.path ? "#!" + this.path : this.canonicalPath)
        }
        ,
        s.prototype.save = function() {
            history.replaceState(this.state, this.title, _ && "/" !== this.path ? "#!" + this.path : this.canonicalPath)
        }

#3

Thank you Sam I will take a look and try to implement :slight_smile:


#4

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.