Skip to content

Commit

Permalink
added more responsive fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
faahim committed May 21, 2018
1 parent 68b0182 commit 99db3cc
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 14 deletions.
18 changes: 7 additions & 11 deletions script/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,17 +189,12 @@ tl
},
"-=2"
)
.from(
".hat",
0.5,
{
x: -100,
y: 350,
rotation: -180,
opacity: 0
},
"currentStep"
)
.from(".hat", 0.5, {
x: -100,
y: 350,
rotation: -180,
opacity: 0
})
.staggerFrom(
".wish-hbd span",
0.7,
Expand Down Expand Up @@ -267,6 +262,7 @@ tl
);

// tl.seek("currentStep");
// tl.timeScale(2);

// Restart on click
const replyBtn = document.getElementById("replay");
Expand Down
46 changes: 43 additions & 3 deletions style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ body {
.one > img {
vertical-align: middle;
margin-bottom: 10px;
max-width: 100%;
height: auto;
}

.two {
Expand Down Expand Up @@ -115,6 +117,8 @@ body {

.six img {
display: inline-block;
max-width: 100%;
height: auto;
}

.six .hat {
Expand Down Expand Up @@ -240,11 +244,47 @@ body {
}
}

@media screen and (max-height: 600px) {
@media screen and (max-height: 700px) {
.six .hat {
left: 32%;
}
}

@media screen and (max-height: 850px) and (max-width: 450px) {
.six .hat {
left: 32%;
}
}

@media screen and (max-width: 500px) {
.container {
width: 95%;
width: 90%;
}

.four .text-box {
width: 90%;
}

.text-box .fake-btn {
right: 5px;
bottom: -38px;
}

.idea-5 span {
display: block;
}

.idea-6 span {
font-size: 10rem;
}

.six .hat {
left: 34%;
width: 50px;
top: -20px;
}

.nine p {
font-size: 1.5rem;
font-weight: lighter;
}
}

0 comments on commit 99db3cc

Please sign in to comment.