gythjk
This commit is contained in:
parent
6a2c7a4e2b
commit
7af0bb5603
|
|
@ -4,6 +4,16 @@
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
|
background: #00822c;
|
||||||
|
&__item {
|
||||||
|
margin: 0 50px;
|
||||||
|
p {
|
||||||
|
color: #fff;
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 20px;
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
}
|
||||||
&::after {
|
&::after {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
|
@ -24,7 +34,7 @@
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 120px;
|
width: 120px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background: #00822c;
|
background: #ee4037;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
@ -36,7 +46,7 @@
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
&::before {
|
&::before {
|
||||||
clip-path: polygon(100% 46%, 0 0, 0 100%);
|
clip-path: polygon(100% 46%, 0 0, 0 100%);
|
||||||
background: #00822c;
|
background: #ee4037;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 100%;
|
left: 100%;
|
||||||
|
|
@ -51,23 +61,6 @@
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.marquee div {
|
|
||||||
display: block;
|
|
||||||
width: 400%;
|
|
||||||
height: 30px;
|
|
||||||
position: absolute;
|
|
||||||
overflow: hidden;
|
|
||||||
animation: marquee 25s linear infinite;
|
|
||||||
}
|
|
||||||
|
|
||||||
.marquee span {
|
|
||||||
float: left;
|
|
||||||
width: 25%;
|
|
||||||
font-size: 14px;
|
|
||||||
line-height: 40px;
|
|
||||||
font-weight: 400;
|
|
||||||
color: $text-black;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes marquee {
|
@keyframes marquee {
|
||||||
0% {
|
0% {
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,20 @@ $(".newsSlider").slick({
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
$(".marquee").slick({
|
||||||
|
speed: 8000,
|
||||||
|
autoplay: true,
|
||||||
|
autoplaySpeed: 0,
|
||||||
|
centerMode: true,
|
||||||
|
cssEase: "linear",
|
||||||
|
slidesToShow: 1,
|
||||||
|
slidesToScroll: 1,
|
||||||
|
variableWidth: true,
|
||||||
|
infinite: true,
|
||||||
|
initialSlide: 1,
|
||||||
|
arrows: false,
|
||||||
|
buttons: false,
|
||||||
|
});
|
||||||
// lazyload start
|
// lazyload start
|
||||||
// =============================================
|
// =============================================
|
||||||
if (
|
if (
|
||||||
|
|
@ -125,4 +138,3 @@ if (
|
||||||
);
|
);
|
||||||
// lazyload end
|
// lazyload end
|
||||||
// =============================================
|
// =============================================
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ postPage = "post"
|
||||||
<a href="#" class="marquee__link">
|
<a href="#" class="marquee__link">
|
||||||
Главное
|
Главное
|
||||||
</a>
|
</a>
|
||||||
<div>{% for post in posts %} <span>{{post.title}}</span> {% endfor %}</div>
|
<div class="marquee__item">{% for post in posts %} <p>{{post.title}}</p> {% endfor %}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="swiper-container mySwiper">
|
<div class="swiper-container mySwiper">
|
||||||
<div class="swiper-wrapper">
|
<div class="swiper-wrapper">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue