1
jpg-imagesにsvg-filterを適用し、ホバリングしてそのフィルタをもう一度オフにします。異なるsvgフィルタ間の移行 - どのように?
ので、フィルターはその
<svg version="1.1" width="0" height="0" class="filter-rot">
<filter id="duotone" color-interpolation-filters="sRGB">
<feColorMatrix type="matrix" values="0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0" result="gray"></feColorMatrix>
<feComponentTransfer color-interpolation-filters="sRGB">
<feFuncR type="table" tableValues="0 0.098"></feFuncR>
<feFuncG type="table" tableValues="0 0.114"></feFuncG>
<feFuncB type="table" tableValues="0 0.722"></feFuncB>
<feFuncA type="table" tableValues="1 1"></feFuncA>
</feComponentTransfer>
</filter>
</svg>
のように見え、SCSSがそのようその後、次のとおりです。
.sw_projekte figure img{
width:100%;
height:auto;
transition: 0.2s;
-webkit-filter: url(#duotone);
filter: url(#duotone); /* For Firefox pre-35 */
filter: url(#duotone);
transition: 0.5s;
}
.sw_projekte figure img:hover{
filter: none;
}
両方のフィルタは本当に素晴らしい仕事、そしてホバリングも何かをするが、で何の遷移はありませんすべてホバリングしながら。私は間違ったことをしているのですか?
ありがとうございました!
トランジションが必要な場合は、SMILでアニメートすることで、変更するプロパティ値を正確に指定する必要があります。 –
フィディドを設定できますか? –