I want to to translate each of these elements with the same class .. for example if I hover one of these classes I want just the class hovered to be translated not all of them .. Here is my code :
<div class="latestNewsHeadLines">
<ul>
<li class="headlineCl">text1</li>
<li class="headlineCl">text2</li>
<li class="headlineCl">text3</li>
<li class="headlineCl">text4</li>
</ul>
</div>
jQuery Code :
$(".headlineCl").hover(function(){
var Length = $(this).width();
var transRight = -(Length -245) ;
$(".headlineCl a").css({'right':transRight+"px"})
});
Thank you!
thiscontext