css - Image over CSS3 animation z-index not working -


i want set image on css3 animation. used z-index:55 animation image , z-index:56 top image. cannot it.

here want show animation inside tv. important me replace tv image on animation. (for responsive issue avoid used image background)

please see example fiddle here

multiple problems there:

  • 1 terry commented - elements needs syblings.
  • 2 alireza safain said, need have postion, defined on both elements

so fiddle updated this:

.tv {  position: relative;  z-index: 100; } 

https://jsfiddle.net/s9s1mbxv/1/

this place swirl background still overflow on image. partialy solved setting huge border on tv , offseting top/left, that's bit silly

.tv {     position: relative;     z-index: 100;     border: 200px solid #fff;     top: -100px;     left: -100px; } 

better solution add white background tv image.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

android - Go back to previous fragment -