网站加载在Safari和Firefox上看起来很好,但在谷歌浏览器中表现得非常奇怪。 Chrome似乎正在努力加载页面,动画非常生涩/白色华丽。不知道我哪里出错了,在我将它从本地移动到托管之前,它在Chrome中看起来很好。
以下是菜单的片段,例如在悬停时它会以铬色闪烁白色。此外,它似乎不会加载不在其视口中的内容。
body {
position: relative;
background: #fffdfa;
font-size: 16px;
}
.t-menu {
position: absolute;
width: 100%;
top: 3em;
height: 13em;
z-index: 99;
}
.t-ul {
list-style: none;
margin: 0;
padding: 0;
}
.t-menu-ul {
position: relative;
width: 100%;
max-width: 80em;
height: 13em;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
align-items: center;
padding: 1em 2em 0 2em;
margin: 0 auto;
}
.t-menu-ul li {
position: relative;
display: inline-block;
width: 8em;
text-align: center;
}
a.t-link {
position: relative;
font-family: 'Caviar Dreams', sans-serif;
font-weight: 900;
color: #fffdfa;
padding-bottom: 0.6em;
border-bottom: 0.4em solid rgba(0,0,0,0);
cursor: pointer;
transition: all 0.2s ease-in-out;
}
a.t-link:hover {
text-decoration: none;
border-bottom: 0.4em solid #e7b32c;
}
.t-hero {
position: relative;
width: 100%;
height: 100vh;
min-height: 50em;
max-height: 67.5em;
border: 2em solid #fffdfa;
border-top: 3em solid #fffdfa;
background-image: linear-gradient(rgba(18, 5, 7, 0.4), rgba(18, 5, 7, 0.4)), url('/img/fl-hero-a.jpg');
background-blend-mode: multiply;
background-position: center center;
background-size: cover;
background-repeat: no-repeat;
transition: all 0.2s ease;
}
<nav class="t-menu">
<ul class="t-ul t-menu-ul">
<li>
<a class="t-link" href="https://www.facebook.com/tjsbowties" target="_blank">
<i class="fa fa-lg fa-facebook-official" aria-hidden="true"></i>
</a>
</li>
<li>
<a class="t-link" href="https://www.instagram.com/tjs_bowties/" target="_blank">
<i class="fa fa-lg fa-instagram" aria-hidden="true"></i>
</a>
</li>
<li class="logo-list-item">
<img class="img-responsive margin-auto logo-img" src="/img/tj-bowties-logo.svg" alt="" />
</li>
<li>
<a class="t-link page-scroll" href="#about">
About
</a>
</li>
<li>
<a class="t-link" href="https://squareup.com/store/tjs-bowties/">
Order
</a>
</li>
</ul>
</nav>
答案 0 :(得分:0)
找到了我的解决方案。通过更改模态以获得css可见性:可见和可见性:隐藏我的闪烁问题已消失。问题是太多的swipers一下子被初始化了。