css - Animated pseudo elements and z-index - works in Firefox but not in Chrome -


in firefox pseudo elements behind div (this wanted achieve) in chrome on top. bug in chrome? knows how fix this? adding z-index div didn't me solve problem.

i've tried apply styles div:hover when hover on div element falls behind pseudo elements (in firefox, in chrome pseudo elements on top).

demo on codepen https://codepen.io/mariuszdaniel/pen/rzdyrv?editors=1100

@keyframes spin {  	from {  		transform: rotate(0turn)  		           translatey(-100%) translatey(50%)  		           rotate(1turn)  	}  	to {  		transform: rotate(1turn)  		           translatey(-100%) translatey(50%)  		           rotate(0turn);  	}  }    @keyframes spin-rev {  	from {  		transform: rotate(1turn)  		           translatey(-100%) translatey(50%)  		           rotate(0turn)  	}  	to {  		transform: rotate(0turn)  		           translatey(-100%) translatey(50%)  		           rotate(1turn);  	}  }    @keyframes glow {  	from {  		filter: blur(100px);  		opacity:  0.8  	}  	to {  		filter:  blur(200px);  		opacity: 0.4;  	}  }    .path {   	width:300px;   	height: 300px;  	padding: 20px;  	margin: 100px auto;  	border-radius: 50%;  	background-image: url(https://unsplash.it/300);  	background-position: center;  	background-repeat: no-repeat;  	background-size: cover;  	position: relative;  	transition:  transform 0.5s, box-shadow 0.5s;  }    .path:hover {  	transform: scale(1.25);  	box-shadow:  0 0 50px 0 #3333;  }    .path::before, .path::after  {  	content: "";  	position:aboslute;  	display: block;  	width: 75%;  	height: 75%;  	margin: 25% auto 0;  	border-radius: 50%;   	/*filter: blur(100px); */  	/*opacity: 0.5;*/  }  	  .path::before  {  	/*mix-blend-mode:  hue;*/  	z-index: -200;  	background-color: #21d4fd;  	background-image: linear-gradient(19deg, #21d4fd 0%, #b721ff 100%);  	animation: spin 9s infinite /*alternate*/ linear, glow 3s infinite alternate linear;  }    .path::after {  	margin-top: -100%;  	z-index: -100;  	background-color: #08aeea;  	background-image: linear-gradient(0deg, #08aeea 0%, #2af598 100%);  	animation: spin-rev 6s infinite /*alternate-reverse*/ linear, glow 6s infinite alternate linear;  }
<div class="path"></div>


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -