Skip to content
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

Addressing my own issue #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
css3-card-flipping-effect
=========================
#Usage
Update the "Card" background color to the default you want to use, and use secondary classes (such as "red" or "green") to adjust specific cards.
201 changes: 0 additions & 201 deletions fonts/Apache License.txt

This file was deleted.

Binary file removed fonts/SinkinSans-100Thin.otf
Binary file not shown.
Binary file removed fonts/SinkinSans-100ThinItalic.otf
Binary file not shown.
Binary file removed fonts/SinkinSans-200XLight.otf
Binary file not shown.
Binary file removed fonts/SinkinSans-200XLightItalic.otf
Binary file not shown.
Binary file removed fonts/SinkinSans-300Light.otf
Binary file not shown.
Binary file removed fonts/SinkinSans-300LightItalic.otf
Binary file not shown.
Binary file removed fonts/SinkinSans-400Italic.otf
Binary file not shown.
Binary file removed fonts/SinkinSans-400Regular.otf
Binary file not shown.
Binary file removed fonts/SinkinSans-500Medium.otf
Binary file not shown.
Binary file removed fonts/SinkinSans-500MediumItalic.otf
Binary file not shown.
Binary file removed fonts/SinkinSans-600SemiBold.otf
Binary file not shown.
Binary file removed fonts/SinkinSans-600SemiBoldItali.otf
Binary file not shown.
Binary file removed fonts/SinkinSans-700Bold.otf
Binary file not shown.
Binary file removed fonts/SinkinSans-700BoldItalic.otf
Binary file not shown.
Binary file removed fonts/SinkinSans-800Black.otf
Binary file not shown.
Binary file removed fonts/SinkinSans-800BlackItalic.otf
Binary file not shown.
Binary file removed fonts/SinkinSans-900XBlack.otf
Binary file not shown.
Binary file removed fonts/SinkinSans-900XBlackItalic.otf
Binary file not shown.
Binary file removed fonts/sinkin-sans.zip
Binary file not shown.
26 changes: 8 additions & 18 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
<!-- styles -->
<link rel="stylesheet" href="styles/primary.css"/>
</head>

<body>

<!-- PAGE WRAPPER -->
<div class="container">

<!-- card container -->
<div class="card-container">
<div class="card" data-background="#e51c23">
<div class="card">
<!-- front of the card -->
<div class="card-front">
<h1>Hello</h1>
Expand All @@ -30,29 +31,29 @@ <h1>World!</h1>
<!-- end of back -->
</div>

<div class="card" data-background="#e91e63">
<div class="card">
<!-- front of the card -->
<div class="card-front">
<div class="card-front green">
<h1>Hello</h1>
</div>
<!-- end of front -->

<!-- back of the card -->
<div class="card-back">
<div class="card-back green">
<h1>World!</h1>
</div>
<!-- end of back -->
</div>

<div class="card" data-background="#9c27b0">
<div class="card">
<!-- front of the card -->
<div class="card-front">
<div class="card-front red">
<h1>Hello</h1>
</div>
<!-- end of front -->

<!-- back of the card -->
<div class="card-back">
<div class="card-back red">
<h1>World!</h1>
</div>
<!-- end of back -->
Expand All @@ -61,16 +62,5 @@ <h1>World!</h1>
<!-- end of card container-->
</div>
<!-- END PAGE WRAPPER -->

<!-- scripts -->
<script type="text/javascript" src="scripts/jquery-1.11.1.js"></script>
<script type="text/javascript">
$(function() {
$('.card').each(function(index, elem) {
var backgroundColor = $(elem).attr('data-background');
$(elem).find(' > div').css('background', backgroundColor);
});
});
</script>
</body>
</html>
Loading