Add Splide slider
This commit is contained in:
parent
f0f2633919
commit
0d52c5dd04
9 changed files with 4161 additions and 20 deletions
|
@ -1,4 +1,5 @@
|
|||
@use 'utils/minireset';
|
||||
@use '@splidejs/splide/dist/css/splide-core.min';
|
||||
@use 'partials/fonts';
|
||||
@use 'partials/variables' as *;
|
||||
@use 'partials/animations';
|
||||
|
@ -106,19 +107,28 @@ body {
|
|||
|
||||
path:nth-child(1) {
|
||||
stroke: var(--black);
|
||||
transition: stroke 400ms ease-in-out;
|
||||
}
|
||||
|
||||
path:nth-child(2) {
|
||||
stroke: var(--white);
|
||||
}
|
||||
|
||||
&--rotate-vertical-left {
|
||||
animation: rotate-vertical-left 800ms ease-in-out infinite;
|
||||
transition: stroke 400ms ease-in-out;
|
||||
}
|
||||
|
||||
&--rotate-horizontal-bottom {
|
||||
animation: rotate-horizontal-bottom 800ms ease-in-out infinite;
|
||||
}
|
||||
|
||||
&--white {
|
||||
|
||||
path:nth-child(1) {
|
||||
stroke: var(--white);
|
||||
}
|
||||
|
||||
path:nth-child(2) {
|
||||
stroke: var(--black);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -226,6 +236,17 @@ body {
|
|||
// MAIN
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// Slider section
|
||||
|
||||
.splide {
|
||||
|
||||
&__image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
}
|
||||
|
||||
// Exhibition section
|
||||
|
||||
.exhibition-section {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue