Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The arrow is a CSS sprite contained in <code>http://simple.com/img/sprites.png</code>. It's set up in the CSS with transitions as follows:</p> <pre><code>#main-nav #nav-arrow { -webkit-transition: left opacity; -moz-transition: left opacity; -o-transition: left opacity; transition: left opacity; -webkit-transition-timing-function: ease-in-out; -moz-transition-timing-function: ease-in-out; -o-transition-timing-function: ease-in-out; transition-timing-function: ease-in-out; -webkit-transition-duration: 0.3s; -moz-transition-duration: 0.3s; -o-transition-duration: 0.3s; transition-duration: 0.3s; width: 22px; height: 14px; position: absolute; top: 60px; text-indent: -10000px; background: url("/img/sprites.png") no-repeat -577px -52px } </code></pre> <p>That does the animation when the <code>left</code> property of the CSS changes. The <code>left</code> property is altered by Javascript hooked from the main navigation library that drives the site, <a href="http://mootools.net/forge/p/navsimple" rel="nofollow">NavSimple</a>, in the (customised and minified) <code>https://www.simple.com/js/brawndo.min2175719530.js</code>. The more general NavSimple code to do the navigation also triggers custom Javascript that moves the arrow's left position to halfway along the active navigation element (it's subtracting eleven pixels because the arrow is 22 pixels wide):</p> <pre><code>this.nav_arrow.setStyle("left",d.getPosition(this.nav_wrapper).x+(d.getWidth()/2-11))} </code></pre> <p>And that's basically how it works. Nice site, very well-engineered, I'd say. (The navigation arrow is actually a <code>div</code> containing a letter "V", so it'll still look like an arrow even if the background images don't load, which I thought was a nice touch.)</p> <p>Having said all that, I think this question might be a bit too specific to survive...</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload