Note that there are some explanatory texts on larger screens.

plurals
  1. POAdd content on mouseover
    primarykey
    data
    text
    <p>I am making an animation with CSS and it's almost done.Now i want that area on which i have animated elements should say automatically "hover here". How can i do this with jquery?</p> <p><strong>I have my code here-</strong></p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;style&gt; #D { background: #fff; height: 180px; position: justify; border:1px dotted #ccc; } #S{ font: 5em 'Bree Serif', Helvetica, sans-serif; margin: 50px; opacity: 0; text-transform: uppercase; position:absolute; } #S:nth-child(5) { -webkit-transition: all 2s ease-in-out ; -moz-transition: all 2s ease-in-out ; -o-transition: all 2s ease-in-out ; -ms-transition: all 2s ease-in-out ; transition: all 2s ease-in-out ; } #S:nth-child(4) { -webkit-transition: all 1s ease ; -moz-transition: all 1s ease ; -o-transition: all 1s ease ; -ms-transition: all 1s ease ; transition: all 1s ease ; } #S:nth-child(3) { -webkit-transition: all 2s ease ; -moz-transition: all 0.1s ease 0s ; -o-transition: all 0.1s ease ; -ms-transition: all 0.1s ease ; transition: all 1s ease 0s; } #S:nth-child(2) { -webkit-transition: all 1s ease ; -moz-transition: all 0.1s ease ; -o-transition: all 0.1s ease ; -ms-transition: all 0.1s ease ; transition: all 1s ease ; } #S:nth-child(1) { -webkit-transition: all 1s ease; -moz-transition: all 0.5s ease 0s; -o-transition: all 0.1s ease; -ms-transition: all 0.1s ease; transition: all 1s ease 0s; } #D:hover #S:nth-child(1) { opacity: 1; left: 50px; -webkit-transform: rotate(360deg); -moz-transform: rotate(360deg); -o-transform: rotate(360deg); -ms-transform: rotate(360deg); transform: rotate(360deg); color:#ccc; text-shadow: 1px 4px 6px black; } #D:hover #S:nth-child(2) { opacity: 1; -webkit-transform: rotate(-360deg); -moz-transform: rotate(-360deg); -o-transform: rotate(-360deg); -ms-transform: rotate(-360deg); transform: rotate(-360deg); } #D:hover #S:nth-child(3) { opacity: 1; -webkit-transform: rotate(360deg); -moz-transform: rotate(360deg); -o-transform: rotate(360deg); -ms-transform: rotate(360deg); transform: rotate(360deg); } #D:hover #S:nth-child(4) { opacity: 1; -webkit-transform: rotate(360deg); -moz-transform: rotate(360deg); -o-transform: rotate(360deg); -ms-transform: rotate(360deg); transform: rotate(360deg); } #D:hover #S:nth-child(5) { opacity: 1; -webkit-transform: rotate(-360deg); -moz-transform: rotate(-360deg); -o-transform: rotate(-360deg); -ms-transform: rotate(-360deg); transform: rotate(-360deg); } #D:hover #S:nth-child(6) { opacity: 1; -webkit-transform: rotate(360deg); -moz-transform: rotate(360deg); -o-transform: rotate(360deg); -ms-transform: rotate(360deg); transform: rotate(360deg); } #D:hover #S:nth-child(7) { opacity: 1; -webkit-transform: rotate(-360deg); -moz-transform: rotate(-360deg); -o-transform: rotate(-360deg); -ms-transform: rotate(-360deg); transform: rotate(-360deg); } #D:hover #S:nth-child(8) { opacity: 1; -webkit-transform: rotate(360deg); -moz-transform: rotate(360deg); -o-transform: rotate(360deg); -ms-transform: rotate(360deg); transform: rotate(360deg); } #S:nth-child(6) { -webkit-transition: all 1s ease; -moz-transition: all 0.5s ease 0s; -o-transition: all 0.1s ease; -ms-transition: all 0.1s ease; transition: all 1s ease 0s; } #S:nth-child(7) { -webkit-transition: all 1s ease; -moz-transition: all 0.5s ease 0s; -o-transition: all 0.1s ease; -ms-transition: all 0.1s ease; transition: all 1s ease 0s; } #S:nth-child(8) { -webkit-transition: all 1s ease; -moz-transition: all 0.5s ease 0s; -o-transition: all 0.1s ease; -ms-transition: all 0.1s ease; transition: all 1s ease 0s; font-size:10em; margin-top:4px; color:#ccc; text-shadow: 1px 4px 6px black; } #D:hover #S:nth-child(2) { left: 120px; color:#ccc; text-shadow: 1px 4px 6px black; } #D:hover #S:nth-child(3) { left: 175px; color:#ccc; text-shadow: 1px 4px 6px black; } #D:hover #S:nth-child(4) { left: 260px; color:#ccc; text-shadow: 1px 4px 6px black; } #D:hover #S:nth-child(5) { left: 313px; margin-top:20px; font-size:8em; color:#ccc; text-shadow: 1px 4px 6px black; } #D:hover #S:nth-child(6) {left:390px; color:#ccc; text-shadow: 1px 4px 6px black; } #D:hover #S:nth-child(7) { left:450px; color:#ccc; text-shadow: 1px 4px 6px black; } #D:hover #S:nth-child(8) { left:500px; color:#ccc; text-shadow: 1px 4px 6px black; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="D"&gt; &lt;span id="S"&gt;c&lt;/span&gt;&lt;span id="S"&gt;s&lt;/span&gt;&lt;span id="S"&gt;s&lt;/span&gt;&lt;span id="S"&gt;H&lt;/span&gt;&lt;span id="S" &gt;()&lt;/span&gt;&lt;span id="S"&gt;V&lt;/span&gt;&lt;span id="S"&gt;E&lt;/span&gt;&lt;span id="S"&gt;R&lt;/span&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Demo here- <a href="http://jsfiddle.net/stackmanoz/CeVgT/">http://jsfiddle.net/stackmanoz/CeVgT/</a></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