O
O
ospan012018-01-09 19:10:12
css
ospan01, 2018-01-09 19:10:12

Why icons are not displayed in all browsers?

decided to animate the icons, found an example on the Internet, copied it
to Safari Version 11.0.2 (13604.4.7.1.3), in mobile Safari and Chrome everything is displayed fine,
but for some reason the icons are not displayed correctly in Chrome Mac (Version 63.0.3239.132 (Official build ), (64 bit), Chrmoe Windows and Edge, most likely also displayed in Explorer
HTML
CSS
.gradient-icon{
display:inline-block;
position:relative;
overflow:hidden;
}
html, body{
padding:0;
margin:0;
height:100%;
width:100%;
}
svg .cls-1{
fill:none;
stroke-width:1px;
stroke: #000;
mix-blend-mode:multiply;
}
svg{
color:#000;
position:relative;
opacity:.9;
width:100%;
height:100%;
display:block;
transition:transform .3s ease;
}
.icons-after{
position: absolute;
width:150%;
height:150%;
top:-25%;
left:-25%
mix-blend-mode: screen;
pointer-events:none;
animation: spin 1.5s linear infinite alternate;
}
.icon-gradient-one .icons-after{
background: linear-gradient(55deg, #0951a0 0%,#8cdfff 100%,#30cbff 45%);
}
svg:hover{
transform: scale(.95);
}
@-webkit-keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
Safari
5a54e91140d6e640378653.png
Chrome Mac
5a54e923592e8251833754.png
Chrome Windows
5a54e92d137e8529348900.png
Edge
5a54e9343c948289337080.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
ospan01, 2018-01-09
@ospan01

for some reason html disappeared
here is an example code for the second icon
5a54e9f8e9e20524765103.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question