Horje
replace svg with another using javascript Code Example
replace svg with another using javascript
<a rel="nofollow" href="#0" class="expand-link">
  <svg class="icon icon-expand" viewBox="0 0 32 32"><use xlink:href="#icon-expand"></use></svg>
  <svg class="icon icon-contract" viewBox="0 0 32 32"><use xlink:href="#icon-contract"></use></svg>
</a>

<style>
.expand-link:hover .icon-expand,
.expand-link:active .icon-expand{
  display: none;
}
.expand-link:hover .icon-contract,
.expand-link:active .icon-contract{
  display: block;
}
</style>




Html

Related
confuse your browser in html Code Example confuse your browser in html Code Example
html form Code Example html form Code Example
jinja for loop Code Example jinja for loop Code Example
html table tfoot after thead Code Example html table tfoot after thead Code Example
bootstrap 5 carousel disable autoplay Code Example bootstrap 5 carousel disable autoplay Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8