Intro image, fixed affix

This commit is contained in:
AnitaYCheng
2015-02-10 11:40:06 -08:00
parent e36ffcd639
commit c67bd0a19c
21 changed files with 29 additions and 15 deletions

View File

@@ -1,7 +1,11 @@
New landing page for HabitRPG (Feb 2014)
New landing page for HabitRPG
======================
## (February 2014)
# Scrolling animations
## Scrolling animations
Ive included a wireframe that shows the interactions Im looking for. There are also comments in the HTML file.
Thinking of using [ScrollMagic](http://janpaepke.github.io/ScrollMagic/) but if theres anything anyone else knows and can implement quickly, Im all ears!
Thinking of using [ScrollMagic](http://janpaepke.github.io/ScrollMagic/) but if theres anything anyone else knows and can implement quickly, Im all ears!
@lefnire suggests [Skrollr](https://github.com/Prinzhorn/skrollr), so thats another option!

View File

@@ -77,7 +77,7 @@
<div class="page-header">
<h1>Turn your to-do list into a game</h1>
</div>
<img class="text-center" src="http://placehold.it/800x300" /><!--insert intro images-->
<img class="text-center" src="images/intro.jpg" /><!--insert intro images-->
<div class="introcall">
<h3>Join 150,000 players making it fun to get things done!
<small><button class="btn btn-primary gamifybutton">Gamify your life, for free</button></small>
@@ -96,7 +96,7 @@
<h3>Join us on a mini-quest!</h3><h4><span class="glyphicon glyphicon-chevron-down"></span></h4>
<!--Avatar fades in from behind, is affixed to travel at the center of the page all the way down until it hits the footer call-to-action-->
<img id="myAvatar" data-spy="affix" data-offset-top="400" data-offset-bottom="200" src="http://placehold.it/150x150" />
<img id="myAvatar" data-spy="affix" data-offset-top="380" data-offset-bottom="400" src="http://placehold.it/150x150" />
</section>
@@ -539,14 +539,6 @@ $(document).ready( function() {
});
});
</script>
<script type="text/javascript">
$('#myAvatar').affix({
offset: {
top: 400,
bottom: function () {
return (this.bottom = $('.footer').outerHeight(true))
}
}
})</script>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 536 B

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
images/explosion.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
images/explosion.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

BIN
images/intro.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
images/intro.psd Normal file

Binary file not shown.

View File

@@ -43,16 +43,34 @@ h1, h2, h3, h4, p.sectioninfo {
max-width:400px;
}
img#myAvatar.affix-top {
img#myAvatar {
margin-left:50%;
left:-75px;
}
img#myAvatar.affix-top {
position: absolute;
top: 750px;
}
img#myAvatar.affix-bottom {
position:absolute;
bottom:500px;
}
img#myAvatar.affix {
top: 400px;
}
button.gamifybutton {
margin: 20px;
width:20%;
}
#rewards {
margin-top:200px;
}
.tweet.popover {
position:relative;
display:block;