Skip to content

Commit d108597

Browse files
committed
background y-animation loop
1 parent 07ac2b1 commit d108597

50 files changed

Lines changed: 80 additions & 36 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

css/style.css

Lines changed: 68 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ img {
9797
}
9898

9999
.nav-bar {
100-
background: rgb(30, 38, 38);
100+
background: rgb(0, 0, 0);
101101
position: fixed;
102102
min-width: 100%;
103103
max-width: 100%;
@@ -717,7 +717,7 @@ h4{
717717
border-radius: 2px;
718718
width: 400px;
719719
height: 250px;
720-
position: relative;
720+
721721
opacity: 0;
722722
display: flex;
723723
justify-content: center;
@@ -727,7 +727,7 @@ h4{
727727

728728
transform-style: preserve-3d;
729729
transform-origin: center center;
730-
transition: opacity .5s ease;
730+
transition: transform 3.5s ease, opacity 0.5 ease;
731731
border: 1px solid black;
732732

733733

@@ -743,9 +743,10 @@ h4{
743743
.carousel-item img {
744744
width: 100%;
745745
height: 100%;
746-
box-shadow: 0px 0px 10px 1px black;
746+
box-shadow: 0px 0px 30px 1px rgba(255, 255, 255, 0.342);
747747
transition: transform 0.3s ease;
748748
object-fit: cover;
749+
border: 1px solid black;
749750
}
750751
.carousel-item img:hover{
751752
transform: scale(1.05);
@@ -794,15 +795,15 @@ h4{
794795
}
795796

796797
.carousel-item.left {
797-
transform: rotateY(45deg) !important;
798+
transform: translateX(0px) rotateY(45deg);
798799
z-index: 1;
799800
opacity: 0.8 !important;
800801
width: 200px;
801802
height: 160px;
802803
}
803804

804805
.carousel-item.right {
805-
transform: rotateY(-45deg) !important;
806+
transform: translateX(0px) rotateY(-45deg);
806807
z-index: 1;
807808
opacity: 0.8 !important;
808809
width: 200px;
@@ -818,32 +819,25 @@ h4{
818819
}
819820

820821
.carousel-item.is-flipping {
821-
animation: flipY 1s ease;
822+
animation: flipY .6s ease;
822823
}
823824

824825
@keyframes flipY {
825826
0% {
826-
width: 0px;
827-
height: 0px;
828-
border: none;
827+
transform: scale(1);
829828
opacity: .2 !important;
830829
}
831830

832831
50% {
833-
width: 75px;
834-
height: 75px;
835-
transform: rotateY(-230deg) scale(.5);
836-
border: none;
837-
832+
transform: rotateY(10deg) scale(.9);
838833
}
839834

840835
100% {
841-
transform: rotateY(0deg) scale(1);
836+
transform: scale(1);
842837
opacity: 1;
843-
border: none;
844838
}
845-
846839
}
840+
847841
/* --------Carousel Base-------- */
848842
@media (max-width:975px){
849843

@@ -885,15 +879,17 @@ h4{
885879
}
886880
}
887881
/* <!-- ----Projects Section---------------> */
888-
.projects-section {
889-
background-image: url('/public/gallery/tempbgs/gallery-bg8.jpg');
882+
.gallery-section {
883+
background-image: url('/public/gallery/tempbgs/gallery-bg24.jpg');
890884
background-attachment: fixed;
891885
background-size: cover;
892-
background-position: center;
886+
background-repeat: repeat;
887+
/* background-position-x: -300px;
888+
background-position-y: -500px; */
893889

894890
min-height: calc(100vh);
895891

896-
background-color:rgb(24, 24, 24);
892+
background-color:rgb(0, 0, 0);
897893

898894
border-top: 1px solid white;
899895
border-bottom: 1px solid white;
@@ -910,6 +906,52 @@ h4{
910906
box-shadow: inset 0px 0px 20px 2px rgba(0, 0, 0, 0.642);
911907

912908
overflow-x: hidden;
909+
animation: floatingbg 400s linear infinite;
910+
}
911+
.gallery-bg-overlay{
912+
position: absolute;
913+
inset: 0;
914+
background:
915+
linear-gradient(to right,
916+
rgba(0, 0, 0, .85) 0%,
917+
rgba(0, 0, 0, .85) 33%,
918+
rgba(0, 0, 0, .6) 33%,
919+
rgba(0,0,0,.2) 80%,
920+
rgba(0, 0, 0, .2) 100%);
921+
}
922+
@keyframes floatingbg {
923+
from{
924+
background-position: 0 0;
925+
}
926+
to{
927+
background-position: 0 10000px;
928+
}
929+
}
930+
931+
.home-bg-overlay {
932+
position: absolute;
933+
top: 0;
934+
left: 0;
935+
width: 100%;
936+
height: 100%;
937+
display: grid;
938+
grid-template-columns: repeat(16, 1fr);
939+
grid-template-rows: repeat(16, 1fr);
940+
pointer-events: none;
941+
}
942+
943+
.home-bg-overlay::before,
944+
.home-bg-overlay::after {
945+
content: '';
946+
grid-column: 1 / -1;
947+
grid-row: 1 / -1;
948+
background-image:
949+
linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
950+
linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
951+
background-size: calc(100% / 32) calc(100% / 16);
952+
width: 100%;
953+
height: 100%;
954+
display: block;
913955
}
914956

915957
.cards-container {
@@ -994,7 +1036,7 @@ h4{
9941036
font-size: 1rem !important;
9951037
}
9961038

997-
.projects-section h2 {
1039+
.gallery-section h2 {
9981040
font-size: 1.8rem;
9991041
color: snow;
10001042
max-width: 100vw;
@@ -1803,7 +1845,7 @@ h4{
18031845

18041846
/* <!-- ----@Media Home Section End----------> */
18051847
/* <!-- ----@Media Projects Section--------------> */
1806-
.projects-section {
1848+
.gallery-section {
18071849
padding: 2.5em 0px 0em;
18081850
min-height: calc(100vh - 65px);
18091851
}
@@ -1839,12 +1881,12 @@ h4{
18391881
cursor: pointer;
18401882
}
18411883

1842-
.projects-section h2 {
1884+
.gallery-section h2 {
18431885
min-width: 100%;
18441886
font-size: 1.4rem;
18451887
}
18461888

1847-
.projects-section p {
1889+
.gallery-section p {
18481890
font-size: .75rem;
18491891
border-radius: 0px !important;
18501892
}

index.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
<main>
6161
<!-- --------------Home Section-------------- -->
6262
<section class="home-section">
63+
<div class="home-bg-overlay"></div>
6364
<div class="home-info"><!-- --Home Info-- -->
6465

6566
<div class="home-logo-wrapper">
@@ -111,7 +112,8 @@ <h3 class="typing-text" >
111112
</section>
112113
<!-- --------------Home Section End-------------- -->
113114
<!-- --------------Projects Section-------------- -->
114-
<section class="projects-section" id="projects-section" onclick="return true">
115+
<section class="gallery-section" id="gallery-section" onclick="return true">
116+
<div class="gallery-bg-overlay"></div>
115117
<div class="sticky-title">
116118
<h2>Gallery</h2>
117119
<div class="projects-menu">
@@ -130,6 +132,7 @@ <h2>Gallery</h2>
130132
<button class="carousel-btn next-btn">&#10095;</button>
131133
</div>
132134
<h4>Menu</h4>
135+
133136
<div class="carousel-container carousel-container-2">
134137
<button class="carousel-btn prev-btn">&#10094;</button>
135138
<div class="carousel">
@@ -144,10 +147,10 @@ <h4>Recent Events</h4>
144147
<!-- --NodeJS Backend Card 1-- -->
145148
<!-- <div class="cards-box be-card" onclick="return true">
146149
<div class="cards-img-box">
147-
<img src="public/KARELA-09530-2.JPG" alt="NodeJS Backend Directory">
150+
<img src="" alt="photo alt">
148151
</div>
149152
<p>
150-
We specialize in handling and guiding tailored events to make your dream come to life.
153+
photo info
151154
</p>
152155
</div> -->
153156
</div>

public/KARELA-09530-2.JPG

-47 MB
Binary file not shown.

public/KARELA-09530-3.JPG

-41.6 MB
Binary file not shown.

public/KARELA-09694.JPG

-29 MB
Binary file not shown.

public/bg10.jpg

-72 KB
Binary file not shown.

public/bg6.jpg

-1.76 MB
Binary file not shown.

public/bg9.jpg

-257 KB
Binary file not shown.

public/gallery/tempbgs/bg10.jpg

-72 KB
Binary file not shown.

public/gallery/tempbgs/bg11.jpg

-449 KB
Binary file not shown.

0 commit comments

Comments
 (0)