Skip to content

Commit

Permalink
FIX: Improve Smoothness of Hover Effect piyushg-07#538
Browse files Browse the repository at this point in the history
  • Loading branch information
codeseker committed Jun 14, 2024
1 parent 08b5978 commit c5d33a8
Showing 1 changed file with 27 additions and 17 deletions.
44 changes: 27 additions & 17 deletions css/sec2.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
:root{
:root {
--element-color: black;
--element1-color:rgba(0, 0, 0, 0.5);
--element2-color:rgba(0, 0, 0, 0.8);
--element1-color: rgba(0, 0, 0, 0.5);
--element2-color: rgba(0, 0, 0, 0.8);

}


.sec2buttons{
.sec2buttons {
position: absolute;
top: 23rem;
width: 20rem;
margin-left: 3rem;
}
.sec2btn2{

.sec2btn2 {
cursor: pointer;
height: 2.5rem;
width: 7.2rem;
Expand All @@ -27,16 +28,18 @@
font-weight: bold;

}
.sec2btn2-recent:hover{

.sec2btn2-recent:hover {
color: #fff;
background-color: #ff765d;
}

.sec2 img:hover{
.sec2 img:hover {
transform: scale(1.1);
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.sec2content{
.sec2content {
/* border: 1px solid black; */
width: 100%;
height: auto;
Expand All @@ -45,22 +48,25 @@
justify-content: center;
align-items: center;
margin-left: 1rem;

}
.sec2content>img{

.sec2content>img {
height: 23rem;
width: 29rem;
object-fit: fill;
margin: 0 4rem;
border-radius: 2rem;
transition: all 0.3s ease-in-out;
}

.s2text{
.s2text {
/* border: 1px solid green; */
width: 35rem;
padding: 1rem;
/* margin: 0 3vw; */
}

/* .div{
margin: 1.3vw 0;
font-family: 'Poppins';
Expand All @@ -69,7 +75,7 @@
font-size: 0.9em;
line-height: 30px;
color: var(--element1-color)} */
.s2text h1{
.s2text h1 {
margin: 1rem 0;
font-size: 1.8rem;
font-family: 'Poppins';
Expand All @@ -78,7 +84,8 @@
line-height: 42px;
color: var(--element-color);
}
.s2text p{

.s2text p {
font-family: 'Poppins';
font-style: normal;
font-weight: 500;
Expand All @@ -87,16 +94,19 @@
color: var(--element-color);

}
.author{

.author {
display: flex;
align-items: center;
margin-top: 1rem;
}
.author>img{

.author>img {
height: 3rem;
width: 3rem;
border-radius: 10rem;
}
.authorsname{

.authorsname {
margin-left: 1rem;
}
}

0 comments on commit c5d33a8

Please sign in to comment.