Skip to content

Commit

Permalink
removed open and close animation
Browse files Browse the repository at this point in the history
  • Loading branch information
Zethess committed Aug 8, 2023
1 parent d997875 commit 2daa649
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ Users should be able to:

### Links

- Solution URL: [Add solution URL here](https://your-solution-url.com)
- Live Site URL: [Add live site URL here](https://your-live-site-url.com)
- Live Site URL: [Add live site URL here](https://zethess.github.io/faq-accordion-card/)


## My process

Expand Down
28 changes: 16 additions & 12 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ body{
}
.faq::before{
content: "";
background: url('assets/images/illustration-woman-online-mobile.svg') no-repeat;
background: url('../images/illustration-woman-online-mobile.svg') no-repeat;
width: 300px;
height: 180px;
position: absolute;
Expand All @@ -58,7 +58,7 @@ body{
}
.faq::after{
content: "";
background: url('assets/images/bg-pattern-mobile.svg') no-repeat;
background: url('../images/bg-pattern-mobile.svg') no-repeat;
width: 240px;
height: 104px;
position: absolute;
Expand Down Expand Up @@ -93,8 +93,7 @@ body{
border: none;
cursor: pointer;
width: 20px;

transition: transform 0.5s ease; /* Agregamos una transición suave */
transition: transform 0.1s ease; /* Agregamos una transición suave */
}
.question-paragraph{
color: var(--dark-grayish-blue);
Expand All @@ -104,10 +103,15 @@ body{
display: none;
}
.closeAnimation {
animation: closeAnimation 0.3s forwards ;
max-height: 0px;
display: none;
opacity: 0;
}
.showAnimation {
animation: openAnimation 0.9s forwards;
display: block;
max-height: 400px;
opacity: 1;
margin-bottom: 20px;
}
.question-title p:hover{
cursor: pointer;
Expand All @@ -121,7 +125,7 @@ body{
transform: translate(-38%, -61% );
}
}
@keyframes closeAnimation {
/* @keyframes closeAnimation {
0%{
max-height: 400px;
margin-bottom: 20px;
Expand All @@ -148,9 +152,9 @@ body{
max-height: 400px;
opacity: 1;
}
}
} */
.rotated {
transition: transform 0.5s ease;

transform: rotate(180deg);
}
@media screen and (min-width: 800px){
Expand All @@ -160,12 +164,12 @@ body{
padding: 20px 100px 50px 30px;
flex-basis: 450px;
max-width: 900px;
background: url(assets/images/illustration-woman-online-desktop.svg) bottom 85px left -90px no-repeat,
url(assets/images/bg-pattern-desktop.svg) bottom -130px left -590px no-repeat;
background: url(../images/illustration-woman-online-desktop.svg) bottom 85px left -90px no-repeat,
url(../images/bg-pattern-desktop.svg) bottom -130px left -590px no-repeat;
background-color: white;
}
.faq::before{
background: url('assets/images/illustration-box-desktop.svg') no-repeat;
background: url('../images/illustration-box-desktop.svg') no-repeat;
width: 300px;
height: 180px;
position: absolute;
Expand Down

0 comments on commit 2daa649

Please sign in to comment.