私は自分のウェブサイトにいくつかのトランジション・テキストを作成しようとしていますが、ボタンをクリックしてテキストをトランジションしようとしています。私はdivタグでこれを行うことができますが、特定の要素では、私はできません。今、私はそれがあるためだと想像ボタンを表示するテキスト
<button class="btn btn-primary" id="hidetext">
Setup Info
</button>
:
だからここに私のHTMLコードです:
<div class="infoLinks centerlinks">
<div class="col-xs-12 col-md-12 tips" id="hidetext">
<button class="btn btn-primary">
Setup Info
</button>
<ul >
<li>
<a href="{{var protoHost}}img/NETGEARSetup.pdf" target="_blank" class="showtext">How to setup your Netgear Wireless Router</a>
</li>
<li>
<a href="{{var protoHost}}img/DSLSetup.pdf" target="_blank" class="showtext">How to setup your DSL/CABLE Internet</a>
</li>
<li>
<a href="{{var protoHost}}img/VoIPSetup.pdf" target="_blank" class="showtext">How to setup your Internet with VoIP Phone</a>
</li>
</ul>
</div>
</div>
そして、ここに私のCSSです:私は、ボタンのコードを変更したときに今
#hidetext .showtext {
color: #ffffff;
-webkit-transition: color .75s ease-in;
-moz-transition: color .75s ease-in;
-o-transition: color .75s ease-in;
-ms-transition: color .75s ease-in;
transition: color .75s ease-in;
}
#hidetext:hover .showtext{
color: #000000;
}
私のボタンは私のテキストと同じ要素にありません。
どうすればこの問題を解決できますか?ありがとう。
あなたはeasyly使用jqueryのには、移行のために – pTi
を使用していることを行うことができます!出来た!今はjqueryを調べて後で変更するつもりです。 – Manish62