Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .container {
- position: relative;
- width: 30%;
- text-align: center;
- display: flex;
- align-items: center;
- justify-content: center;
- text-align: center;
- }
- #image {
- opacity: 0.5;
- width: 100%;
- }
- .overlay {
- position: absolute;
- width: 60%;
- top: 20%;
- background-color: white;
- border-radius: 10px;
- opacity: 0.7;
- }
- .text-1 {
- font-size: 35px;
- }
- .Gandalf {
- position: absolute;
- top: 50%;
- font-size: 60px;
- opacity: 1;
- color: white;
- }
- #red-text {
- color: orange;
- }
- .container:hover .overlay {
- opacity: 0;
- }
- .container:hover .Gandalf {
- opacity: 1;
- top: 90%;
- font-size: 30px;
- }
- .container:hover #image {
- opacity: 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement