-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #240 from Asymtode712/HoverFeat
added hovering effect and enhaced UI
- Loading branch information
Showing
3 changed files
with
44 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
.close { | ||
animation: close-animation 1s forwards; | ||
.faq-item { | ||
position: relative; | ||
cursor: pointer; | ||
} | ||
.open { | ||
animation: open-animation 1s forwards; | ||
} | ||
@keyframes open-animation { | ||
from { | ||
height: 55px; | ||
} | ||
to { | ||
height: 140px; | ||
} | ||
|
||
.faq-item .faq-detail { | ||
display: none; | ||
background-color: #f8f8f8; | ||
padding: 10px; | ||
border: 1px solid #ccc; | ||
z-index: 1; | ||
margin-top: 10px; | ||
top: 100%; | ||
left: 0; | ||
width: 100%; | ||
} | ||
|
||
@keyframes close-animation { | ||
from { | ||
height: 140px; | ||
} | ||
to { | ||
height: 55px; | ||
} | ||
.faq-item:hover .faq-detail { | ||
display: block; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters