Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS3 animation begin when hovering over a different element?
    primarykey
    data
    text
    <p>I have a navigation bar that I'm trying to get two links to animate in from off-page and end next to my other links when I hover over one of the links in my list.</p> <p>Current navigation links:</p> <pre><code>&lt;div class="links"&gt; &lt;ul&gt; &lt;li&gt; &lt;a href="#"&gt;link 1&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="#"&gt;link 2&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="#"&gt;link 3&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p>and the css for .links:</p> <pre><code>.links ul { white-space: nowrap; list-style-type: none; position: fixed; top: 8px; left: 60%; z-index: 4; width: auto; height: 67px; } .links li { white-space: nowrap; display: inline-block; margin-right: 30px; z-index: 4; height: 40px; } </code></pre> <p>And here's the relevant css, along with the animation that I have currently that works properly:</p> <pre><code>.extralinks { position: fixed; top: 8px; left: 90%; animation-name: slidey; animation-duration: 1s; animation-timing-function: ease; animation-delay: 0s; animation-iteration-count: 1; animation-direction: normal; animation-play-state: running; /* Safari and Chrome */ -webkit-animation-name: slidey; -webkit-animation-duration: 1s; -webkit-animation-timing-function: ease; -webkit-animation-delay: 0s; -webkit-animation-iteration-count: 1; -webkit-animation-direction: normal; -webkit-animation-play-state: running; z-index: 4; } @keyframes slidey { 0% {left: 90%; top: 8px;} 100% {left: 40%; top: 8px;} } @-webkit-keyframes slidey /* Safari and Chrome */ { 0% {left: 90%; top: 8px;} 100% {left: 40%; top: 8px;} } .links li:nth-child(3) { background-color: Red; } </code></pre> <p>markup for .extralinks</p> <pre><code>&lt;div class="extralinks"&gt; &lt;ul&gt; &lt;li&gt; &lt;a href="#"&gt;link 4&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="#"&gt;link 5&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p>I need to make it so that when someone hovers over "link 3" the animated links slide in from the right and end next to my links. I'm not quite sure how exactly to link the animation to "link 3" in my list. Any help? I would not be opposed to using javascript/jquery, I'm just not well-versed in either.</p> <p>Thank you!</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.
 

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