diff --git a/assets/css/style.css b/assets/css/style.css index 74f1ba2c..69271a49 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -885,14 +885,35 @@ body { #INSTA POST \*-----------------------------------*/ +#marquee{ + display: flex; + width: 100%; + height:50vh; + background-color: var(--light-gray); + white-space:nowrap; + overflow-x: hidden; + overflow-y: hidden; +} +.insta-post-item img{ + width: 100%; + height: 100%; + object-fit: cover; + object-position: center; +} + +.insta-post{ + animation-name:animate ; + animation-duration:9.1s; + animation-timing-function: linear; + animation-iteration-count:infinite; +} + .insta-post-link { position: relative; background-color: var(--eerie-black-1); overflow: hidden; } - .insta-post-link > img { transition: var(--transition-2); } - .insta-post-link:is(:hover, :focus) > img { transform: scale(1.1); opacity: 0.5; @@ -908,21 +929,38 @@ body { opacity: 0; transition: var(--transition-2); } - .insta-post-link:is(:hover, :focus) > ion-icon { opacity: 1; } .insta-post-list { display: flex; overflow-x: auto; + padding: 0; scroll-snap-type: inline mandatory; } .insta-post-list::-webkit-scrollbar { display: none; } .insta-post-item { - min-width: 90%; + width: 50vh; + height : 50vh ; scroll-snap-align: center; } +.insta-post-item img{ + width: 100%; + height: 100%; + object-fit: cover; + object-position: center; +} +@keyframes animate { + from{ + -webkit-transform:translateX(0%); + transform:translateX(0%); + } + to{ + -webkit-transform:translateX(-100%); + transform:translateX(-100%); + } +} diff --git a/index.html b/index.html index e5506dae..10da7ce5 100644 --- a/index.html +++ b/index.html @@ -13,8 +13,8 @@ - - + + - - + - - - + + @@ -292,7 +292,8 @@

Environment

About Us

- Decorative design element for styling + Decorative design element for styling