Skip to content

Commit

Permalink
Trying to add portrait into carousel
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Wagner committed Jul 9, 2024
1 parent 294148f commit 27afc28
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
6 changes: 3 additions & 3 deletions _layouts/about.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ layout: default
{% comment %}
<img src="assets/img/group/group1_reduced.jpg" alt="Group hike in the Pentland hills" class="pic">
{% endcomment %}
<img src="assets/img/group/group2_reduced.jpg" alt="Group on Bristo square 2023" class="pic-portrait">
<img src="assets/img/group/group3_reduced.jpg" alt="Axe throwing social February 2024" class="pic">
<img src="assets/img/group/group4_reduced.jpg" alt="BMIA conference dinner" class="pic">
<img src="assets/img/group/group2_reduced.jpg" alt="Group on Bristo square 2023" class="landscape">
<img src="assets/img/group/group3_reduced.jpg" alt="Axe throwing social February 2024" class="landscape">
<img src="assets/img/group/group4_reduced.jpg" alt="BMIA conference dinner" class="portrait">
</div>

<!-- Latest posts -->
Expand Down
11 changes: 10 additions & 1 deletion _sass/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ swiper-container {
padding-top: 60%;
}

.pic-ctn > img {
.pic-ctn > landscape {
position: absolute;
top: 0;
left: calc(50% - 40%);
Expand All @@ -1271,6 +1271,15 @@ swiper-container {
animation: display 15s infinite;
}

.pic-ctn > portrait {
position: absolute;
top: 0;
left: calc(50% - 40%);
height: 50%;
opacity: 0;
animation: display 15s infinite;
}

img:nth-child(2) {
animation-delay: 5s;
}
Expand Down

0 comments on commit 27afc28

Please sign in to comment.