【发布时间】:2015-12-30 04:16:27
【问题描述】:
试图获得以下似乎适用于桌面的内容,也适用于移动设备,但我看到的只是白色。所以淡入永远不会发生。这是我的 HTML:
<a href="https://thecleverroot.com/meet-your-makers-hudson-valley-foie-gras/" title="Folio: Meet Your Makers" class="feature-link">
<section class="feature fade-in one" style="background: linear-gradient( rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.35) ), url(https://thecleverroot.com/wp-content/uploads/header-hudson-valley-foie-gras.jpg ) no-repeat top center!important; background-size: cover!important;">
<section class="feature-caption"><p class="category-link">Growers</p><h2>Folio: Meet Your Makers </h2><p>Jenny Chamberlain, Chef of Product Development for Hudson Valley Foie Gras, Ferndale, NY</p><p class="read-more">Read</p></section></section>
</a>
这是 CSS:
.fade-in.one { -webkit-animation-delay: 1.25s; -moz-animation-delay: 1.25s; -o-animation-delay: 1.25s; animation-delay: 1.25s; }
.fade-in { opacity: 0; -webkit-animation: 1s ease-in 0s normal forwards 1 running fadeIn; -moz-animation: 1s ease-in 0s normal forwards 1 running fadeIn; -o-animation: 1s ease-in 0s normal forwards 1 running fadeIn; animation: 1s ease-in 0s normal forwards 1 running fadeIn; }
body.home a.feature-link { text-decoration: none; }
.feature-caption h2 { font-size: 64px; line-height: .75em; margin: .25em 0; }
.category-link {
background: #000;
border-radius: 14px;
display: inline-block;
margin: 0;
padding: 0 20px;
min-width: 90px;
height: 31px;
line-height: 31px;
color: #FFF;
font-size: 14px;
text-align: center;
font-weight: 400;
text-transform: uppercase;
}
【问题讨论】:
标签: ios css css-animations