-
Notifications
You must be signed in to change notification settings - Fork 0
completed card hover project #66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
1khansaad
wants to merge
4
commits into
master
Choose a base branch
from
saad-card-hover
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title>card hover effect</title> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <link rel="stylesheet" type="text/css" href="style.css"> | ||
| </head> | ||
| <body> | ||
| <div class="container"> | ||
| <div class="cards"> | ||
| <div class="face face1"> | ||
| <div class="content"> | ||
| <img src="play store.png" alt="play store icon" width="100px"> | ||
| <h2>Play store</h2> | ||
| </div> | ||
| </div> | ||
| <div class="face face2"> | ||
| <div class="content"> | ||
| <p>Google Play, also branded as the Google Play Store and formerly Android Market, is a digital distribution service operated and developed by Google. It serves as the official app store for certified devices.</p> | ||
| <a href="#">Read More</a> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <div class="cards"> | ||
| <div class="face face1"> | ||
| <div class="content"> | ||
| <img src="gmail.png" alt="gmail icon" width="100px"> | ||
| <h2>Gmail</h2> | ||
| </div> | ||
| </div> | ||
| <div class="face face2"> | ||
| <div class="content"> | ||
| <p>Google Play, also branded as the Google Play Store and formerly Android Market, is a digital distribution service operated and developed by Google. It serves as the official app store for certified devices.</p> | ||
| <a href="#">Read More</a> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <div class="cards"> | ||
| <div class="face face1"> | ||
| <div class="content"> | ||
| <img src="google photos.png" alt="google photos icon" width="100px"> | ||
| <h2>Google photos</h2> | ||
| </div> | ||
| </div> | ||
| <div class="face face2"> | ||
| <div class="content"> | ||
| <p>Google Play, also branded as the Google Play Store and formerly Android Market, is a digital distribution service operated and developed by Google. It serves as the official app store for certified devices.</p> | ||
| <a href="#">Read More</a> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </body> | ||
| </html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| * { | ||
| margin: 0; | ||
| padding: 0; | ||
| box-sizing: border-box; | ||
| } | ||
| .container { | ||
| height: 100vh; | ||
|
|
||
| display: flex; | ||
| text-align: center; | ||
| align-items: center; | ||
| justify-content: space-around; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. group proprties !
|
||
| } | ||
| .cards { | ||
| width: 25%; | ||
| display: flex; | ||
| flex-wrap: wrap; | ||
| min-width: 300px; | ||
| } | ||
| .container .cards .face1 img { | ||
| margin: 15px; | ||
| } | ||
| .container .cards .face1 img:hover { | ||
| width: 105px; | ||
| transition: 0.2s; | ||
| } | ||
| .container .cards .face1 { | ||
| background: rgb(177, 157, 157); | ||
| width: 100%; | ||
| z-index: 1; | ||
| transform: translateY(100px); | ||
| height: 33vh; | ||
| } | ||
| .container .cards:hover .face1 { | ||
| transform: translateY(0); | ||
| transition: 0.5s; | ||
| } | ||
| .container .cards .face2 { | ||
| transform: translateY(-106px); | ||
| height: 33vh; | ||
| background: rgb(221, 33, 33); | ||
| } | ||
| .container .cards:hover .face2 { | ||
| transform: translateY(0); | ||
| } | ||
| .container .cards .face2 a { | ||
| text-decoration: none; | ||
| border: 1px solid black; | ||
| color: black; | ||
| padding: 1%; | ||
| } | ||
| .container .cards .face2 p { | ||
| text-align: left; | ||
| padding-left: 10px; | ||
| font-size: 1.1em; | ||
| } | ||
| .container .cards .face2 a:hover { | ||
| background: black; | ||
| color: white; | ||
| box-shadow: 2px 2px #333; | ||
| transition: 0.3s; | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.