Slideshow - add gradient overlay.
This commit is contained in:
parent
f03e1113ba
commit
83b49cd93c
BIN
img/thumbnails/animal.jpg
Normal file
BIN
img/thumbnails/animal.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 43 KiB |
BIN
img/thumbnails/monalisa.jpg
Normal file
BIN
img/thumbnails/monalisa.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 73 KiB |
BIN
img/thumbnails/stuffhappens.jpg
Normal file
BIN
img/thumbnails/stuffhappens.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 35 KiB |
@ -147,6 +147,53 @@
|
|||||||
</p>
|
</p>
|
||||||
</figcaption>
|
</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
|
<figure style="--color: pink;">
|
||||||
|
<img src="../img/thumbnails/animal.jpg"
|
||||||
|
alt="Animal">
|
||||||
|
<figcaption>
|
||||||
|
<header>
|
||||||
|
Woman jailed for life for harming animal
|
||||||
|
</header>
|
||||||
|
<p>
|
||||||
|
"The evidence we have is that he was using the fence as a bat or a mouse catcher,"
|
||||||
|
said Tessler. "There are numerous locations throughout the property where he is
|
||||||
|
reasonably suspected to have killed wildlife."
|
||||||
|
|
||||||
|
"We are very concerned and shocked by the evidence we've gathered," said Pierre
|
||||||
|
Baillargeon, the president of the Committee for the Protection of Wildlife in
|
||||||
|
Quebec. "He (Paulus) had an expansive knowledge of this area."
|
||||||
|
|
||||||
|
Alberta government says wildlife rehabilitators arrested in criminal plot to
|
||||||
|
control. </p>
|
||||||
|
</figcaption>
|
||||||
|
</figure>
|
||||||
|
<figure style="--color: black;">
|
||||||
|
<video
|
||||||
|
autoplay
|
||||||
|
loop
|
||||||
|
src="../img/thumbnails/hecomes.gif"
|
||||||
|
>
|
||||||
|
He comes
|
||||||
|
</video>
|
||||||
|
<figcaption>
|
||||||
|
<header>
|
||||||
|
HE IS COMING
|
||||||
|
</header>
|
||||||
|
<p>
|
||||||
|
He is coming down the corridor, actually, it's an
|
||||||
|
old block building with a gas station, and this is
|
||||||
|
how it looks when you walk by and know it's your
|
||||||
|
business," he said.
|
||||||
|
|
||||||
|
The barber by day and the builder by night is
|
||||||
|
Matthew Perrone, 37. Perrone moved to Georgetown in
|
||||||
|
2011 to make a difference. He met with McAuliffe on
|
||||||
|
one of those "meet-the-bureaucrat-and-prove-your-idea"
|
||||||
|
sessions, and they struck a deal. Perrone would not
|
||||||
|
give him his barber's license.
|
||||||
|
</p>
|
||||||
|
</figcaption>
|
||||||
|
</figure>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="right" class="controls">
|
<div id="right" class="controls">
|
||||||
|
@ -17,32 +17,35 @@ body > main {
|
|||||||
font-size: 5rem;
|
font-size: 5rem;
|
||||||
color: $secondary;
|
color: $secondary;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: transform 1s ease-out;
|
transition: transform 2s ease-out;
|
||||||
|
|
||||||
&.inactive {
|
&.inactive {
|
||||||
color: gray;
|
color: gray;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
transition-duration: 2s;
|
transition-duration: 1s;
|
||||||
transition-timing-function: ease-in;
|
transition-timing-function: ease-in;
|
||||||
|
|
||||||
&#left {
|
&#left {
|
||||||
transform: rotate(0.5turn);
|
transform: rotateY(0.5turn);
|
||||||
}
|
}
|
||||||
|
|
||||||
&#right {
|
&#right {
|
||||||
transform: rotate(-0.5turn);
|
transform: rotateY(-0.5turn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#slideshow-container {
|
#slideshow-container {
|
||||||
|
border: 1rem solid $secondary;
|
||||||
|
border-radius: 5px;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
height: 100vh;
|
height: 80vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
#inner-slideshow {
|
#inner-slideshow {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@ -54,17 +57,32 @@ body > main {
|
|||||||
transition: transform 500ms ease-out;
|
transition: transform 500ms ease-out;
|
||||||
|
|
||||||
figure {
|
figure {
|
||||||
min-width: 100%;
|
|
||||||
position: relative;
|
|
||||||
$color: var(--color);
|
$color: var(--color);
|
||||||
|
|
||||||
img {
|
min-width: 100%;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
&:after {
|
||||||
|
position: absolute;
|
||||||
|
content: '';
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: linear-gradient(to top, $color, rgba(1, 1, 1, 0));
|
||||||
|
background-blend-mode: soft-light;
|
||||||
|
opacity: 70%;
|
||||||
|
z-index: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
img, video {
|
||||||
min-width: 100%;
|
min-width: 100%;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
width: auto;
|
width: auto;
|
||||||
object-position: center;
|
object-position: center;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
figcaption {
|
figcaption {
|
||||||
@ -73,15 +91,32 @@ body > main {
|
|||||||
left: 0;
|
left: 0;
|
||||||
margin: 2rem;
|
margin: 2rem;
|
||||||
|
|
||||||
|
|
||||||
header {
|
header {
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
font-size: 1.5rem;
|
font-size: 2rem;
|
||||||
font-family: 'Bungee Inline', serif;
|
font-family: 'Bungee Inline', serif;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
background-color: $color;
|
//background-color: $color;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
color: white;
|
color: white;
|
||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
|
z-index: 12;
|
||||||
|
position: relative;
|
||||||
|
text-shadow: 10px 10px 5px transparentize(white, 0.7);
|
||||||
|
|
||||||
|
&:after {
|
||||||
|
background-color: $color;
|
||||||
|
position: absolute;
|
||||||
|
content: '';
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
z-index: -1;
|
||||||
|
padding: 0 10rem 0 0;
|
||||||
|
transform: translateX(-2rem) skewX(-20deg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
@ -104,6 +139,14 @@ body > main {
|
|||||||
left: 0;
|
left: 0;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:after {
|
||||||
|
content: 'Read more';
|
||||||
|
color: black;
|
||||||
|
font-weight: 800;
|
||||||
|
background-color: $color;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user