【发布时间】:2014-04-28 20:54:11
【问题描述】:
我正在寻找一种方法来控制悬停时特定项目的 CSS。由于它不是直接在父系谱系中的元素,所以我不能使用 CSS。
<article class="portfolio-item web">
<a data-rel="prettyPhoto" href="http://vimeo.com/34266952">
<img src="http://localhost/wordpress/wp-content/themes/dewuske/images/portfolio/introspection.jpg" alt="">
<span class="genericBeaconIsotope">
<span class="beaconContainer">
<span class="beaconBar"></span>
<span class="beaconCircle1"></span>
<span class="beaconCircle2"></span>
<span class="beaconText">Introspection</span>
</span>
</span>
</a>
</article>
我正在尝试将鼠标悬停在 beaconContainer 上并影响图像。它应该像翻转一样起作用。这是我想要在 CSS 中完成的工作:
-webkit-transform: scale(10);
-moz-transform: scale(10);
-o-transform: scale(10);
-ms-transform: scale(10);
transform: scale(10);
-ms-filter: "progid: DXImageTransform.Microsoft.Alpha(Opacity=0)";
filter: alpha(opacity=0);
opacity:0;
transition: all 1s ease-out 0s;
transition-property: all;
transition-duration: 1s;
transition-timing-function: ease-out;
transition-delay: 0s;
}
我该怎么做呢?我对 JavaScript 或 jQuery 或如何从它们调用事件知之甚少,尤其是像这样。谢谢
【问题讨论】:
标签: javascript jquery function css onmouseover