Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

simple jquery fade in

  • Loading branch information...
commit a4ebec79b8023737a9b5d5a55c88a2f8c5522e34 1 parent 9ef0ba2
@fredyates fredyates authored
View
1  app/assets/javascripts/application.js
@@ -14,3 +14,4 @@
//= require jquery_ujs
//= require twitter/bootstrap
//= require_tree .
+
View
2  app/assets/stylesheets/homes.css.scss
@@ -55,7 +55,7 @@ input[type="submit"] {
}
#home h1 {
- padding-top: 100px;
+ padding-top: 150px;
color: #fff;
font-size: 50px;
}
View
5 app/views/homes/landing.html.erb
@@ -5,6 +5,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="shortcut icon" href="<%= asset_path "favicon.png" %>">
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<%= stylesheet_link_tag "application", :media => "all" -%>
<%= javascript_include_tag "application" -%>
<%= csrf_meta_tags %>
@@ -15,4 +16,8 @@
<%= render partial: 'homes/landing/how_it_works' -%>
<%= render partial: 'homes/landing/privacy' -%>
</body>
+ <script type="text/javascript">
+ $('.tagline').hide();
+ $('.tagline').fadeIn(1500);
+ </script>
</html>
View
2  app/views/homes/landing/_home.html.erb
@@ -1,5 +1,5 @@
<div id="home">
- <div>
+ <div class="tagline">
<h1>prizzm</h1>
<h2>a better ad experience</h2>
<h3>you choose the ads you want to see</h3>
Please sign in to comment.
Something went wrong with that request. Please try again.