Problems with shadow in a div using transition

0

I have a problem with the visualization with a shadow on a div. Detail the code in a codepen

Codepen

What am I doing wrong?

Edit: In chrome I visualize it like this Apparently it's a rendering bug.


article.item {
  cursor: pointer;
  height: 100%;
  width: 300px;
  position: relative;
  overflow: hidden;
}
article.item article.item {
  cursor: pointer;
  height: 100%;
  width: 300px;
  position: relative;
  overflow: hidden;
}
article.item article.item:hover img {
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
  transform: scale(1.1);
}
article.item article.item::after {
  content: "";
  width: 100%;
  height: 100%;
  background: rgba(46, 34, 34, 0.2);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  -webkit-box-shadow: inset 0 -90px 400px rgba(0, 0, 0, 0.7);
  box-shadow: inset 0 -90px 400px rgba(0, 0, 0, 0.7);
}
article.item article.item.color::after {
  background: rgba(115, 48, 200, 0.6);
}
article.item article.item .over {
  bottom: 0;
  position: absolute;
  left: 0;
  z-index: 3;
}
article.item article.item .over .content {
  padding: 20px;
}
article.item article.item .over .content p {
  color: #fff;
  font-size: 14px;
  line-height: 25px;
  margin: 0;
  font-weight: 300;
}
article.item article.item .over .date {
  text-transform: uppercase;
  color: #ffef1f;
  font-size: 13px;
  font-weight: 300;
}
article.item article.item .over h2 {
  display: block;
  font-size: 3rem;
}
article.item article.item .over h2 a {
  color: #fff;
}
article.item article.item .over h2 a:hover {
  text-decoration: none;
}
article.item article.item a.img {
  position: relative;
  z-index: 1;
}
article.item article.item a.img img {
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
article.item:hover img {
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
  transform: scale(1.1);
}
article.item::after {
  content: "";
  width: 100%;
  height: 100%;
  background: rgba(46, 34, 34, 0.2);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  -webkit-box-shadow: inset 0 -90px 400px rgba(0, 0, 0, 0.7);
  box-shadow: inset 0 -90px 400px rgba(0, 0, 0, 0.7);
}
article.item.color::after {
  background: rgba(115, 48, 200, 0.6);
}
article.item .over {
  bottom: 0;
  position: absolute;
  left: 0;
  z-index: 3;
}
article.item .over .content {
  padding: 20px;
}
article.item .over .content p {
  color: #fff;
  font-size: 14px;
  line-height: 25px;
  margin: 0;
  font-weight: 300;
}
article.item .over .date {
  text-transform: uppercase;
  color: #ffef1f;
  font-size: 13px;
  font-weight: 300;
}
article.item .over h2 {
  display: block;
  font-size: 3rem;
}
article.item .over h2 a {
  color: #fff;
}
article.item .over h2 a:hover {
  text-decoration: none;
}
article.item a.img {
  position: relative;
  z-index: 1;
}
article.item a.img img {
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
<article class="item">
	<a href="http://elemultiespacio.com.ar/hollywood-nigth/" class="img"><img src="https://unsplash.it/400x400" alt="Hollywood Nigth"></a>
    <div class="over">
        <div class="content">
            <div class="date">domingo </div>
            <h2 class="downlines"><a href="http://elemultiespacio.com.ar/hollywood-nigth/">Test</a></h2>                                    <p>My content</p>
        </div>
    </div>
</article>
    
asked by Seba Ortiz 17.04.2018 в 19:41
source

0 answers