0
title
属性をクラスに転送することが可能です。問題は、最初の単語(アニメーション)の要素を見つけてクラスタイトルに割り当てる方法です。例えばjqueryを使用してクラス属性に要素のタイトルを追加する方法
:
<div class="colelem" title="animated infinite bounce"></div>
<div class="colelem" title="animated infinite bounce"></div>
あなたはこの仕事をする.addClass(function)
を使用することができます
<div class="colelem animated infinite bounce" title="animated infinite bounce"></div>
<div class="colelem animated infinite bounce" title="animated infinite bounce"></div>
私はあなたが求めているものは本当にわからないんだけど、しかし、あなたが追加する[addClass()](http://api.jquery.com/addclass)メソッドを使用することができます要素のクラス –
$( "#u211")。addClass($( "#u211")。attr( "title")) 'あなたの仕事をしましょう – Mohammad
一つの解決策です。しかし、大量使用には適していません。アニメーションのある要素はもっと多くなり、自動的に割り当てられるようにする必要があります。 –