Control CSS via JavaScript or jQuery -
I am looking for a way to control CSS for a particular item on hover. Since this is not a straight element in the original element, I can not use CSS.
& lt; Article class = "portfolio-item web" & gt; & Lt; A data-rel = "prettyPhoto" href = "http://vimeo.com/34266952" & gt; & Lt; Img src = "http: //localhost/wordpress/wp-content/themes/dewuske/images/portfolio/introspection.jpg" alt = "" & gt; & Lt; Span class = "generic beacon isotope" & gt; & Lt; Span class = "bacon continent" & gt; & Lt; Span class = "beaconbar" & gt; & Lt; / Span & gt; & Lt; Span class = "biconcratch 1" & gt; & Lt; / Span & gt; & Lt; Span class = "beaconCircle2" & gt; & Lt; / Span & gt; & Lt; Span class = "beacontext" & gt; Introspection & lt; / Span & gt; & Lt; / Span & gt; & Lt; / Span & gt; & Lt; / A & gt; & Lt; / Article & gt;
I am trying to hover over the beacon container and affect the image. It should work like a rollover, that is, I am trying to complete in CSS:
-Vibit-transform: scale (10); -MOZ-transform: scale (10); -o-results: scale (10); -mms-conversion: scale (10); Consequently: scale (10); -M-filter: "Progress: DXimage Transforms. Microsoft. Alpha (Opacity = 0)"; Filters: alpha (opacity = 0); Opacity: 0; Transition: All 1s easily 0s; Transit Property: All; Transition period: 1s; Transition-time-function: easy; Transition-Delay: 0S; }
How would I go about doing this? I know very little javascript or jQuery or how to call events from them, especially this way. Thanks
JQuery provides several methods that can be useful to you.
You can use the method to manually set CSS or use more methods about how to manually implement CSS classes elements (this would be my preferred method) Reactions on user incidents such as mouse overs, etc.
NB: This is a jQuery solution of an special problem presented by your query.
Comments
Post a Comment