Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.68 KB | None | 0 0
  1. <div class="container-fluid full">
  2.  
  3.  
  4. </div>
  5.  
  6. .full {
  7. background: url('http://placehold.it/1920x1080') no-repeat center center fixed;
  8. -webkit-background-size: cover;
  9. -moz-background-size: cover;
  10. background-size: cover;
  11. -o-background-size: cover;
  12. height:100%;
  13. }
  14.  
  15. <style>
  16. .button {
  17. position: relative;
  18. background-color: #4CAF50;
  19. border: none;
  20. font-size: 28px;
  21. color: #FFFFFF;
  22. padding: 20px;
  23. width: 200px;
  24. text-align: center;
  25. -webkit-transition-duration: 0.4s; /* Safari */
  26. transition-duration: 0.4s;
  27. text-decoration: none;
  28. overflow: hidden;
  29. cursor: pointer;
  30. }
  31.  
  32. .button:after {
  33. content: "";
  34. background: #90EE90;
  35. display: block;
  36. position: absolute;
  37. padding-top: 300%;
  38. padding-left: 350%;
  39. margin-left: -20px!important;
  40. margin-top: -120%;
  41. opacity: 0;
  42. transition: all 0.8s
  43. }
  44.  
  45. .button:active:after {
  46. padding: 0;
  47. margin: 0;
  48. opacity: 1;
  49. transition: 0s
  50. }
  51. </style>
  52. </head>
  53. <body>
  54.  
  55. <button class="button">Click Me</button>
  56.  
  57. <section id="section1" class="section1">
  58.  
  59. <a href="#contact-me"> <i class="fa fa-angle-down" style="font-size:100px;"></i></a>
  60.  
  61. </section>
  62. <section id="contact-me" class="contact_section section2">
  63.  
  64. <a href="#section1"> <i class="fa fa-angle-up" style="font-size:100px;"></i></a>
  65.  
  66. </section>
  67.  
  68.  
  69. .section1 {
  70. height: 100vh;
  71. text-align: center;
  72. background-color: white;
  73. }
  74.  
  75. .section2 {
  76. background-color: white;
  77. text-align: center;
  78. //margin-top:100px;
  79. color: black;
  80. min-height: 90vh;
  81. }
  82.  
  83. <!DOCTYPE html>
  84. <html lang="en">
  85. <head>
  86. <title>Liam Docherty Digital Portfolio</title>
  87. <meta charset="utf-8">
  88. <meta name="viewport" content="width=device-width, initial-scale=1">
  89. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  90. <script src="https://code.jquery.com/jquery-3.1.1.js" integrity="sha256-16cdPddA6VdVInumRGo6IbivbERE8p7CQR3HzTBuELA=" crossorigin="anonymous"></script>
  91. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  92. </head>
  93. <style>
  94. .body {
  95. font-family: 'Roboto', sans-serif;
  96. color: black;
  97. }
  98. .navbar.navbar-default {
  99. background-color: #FFFFFF;
  100. height: 10vh;
  101. z-index: 100;
  102. }
  103.  
  104. .navbar.navbar-default ul {
  105. list-style-type: none;
  106. text-align: center;
  107. }
  108.  
  109. .navbar.navbar-default ul li {
  110. display: inline-block;
  111. }
  112.  
  113. .dropdown-menu li {
  114. text-align: center;
  115. }
  116.  
  117. .dropdown .dropdown-menu {
  118. background-color: #FFFFFF;
  119. }
  120.  
  121. .dropdown .dropdown-menu a {
  122. color: white;
  123. }
  124.  
  125. .navbar.navbar-default ul li a {
  126. display: inline-block;
  127. padding: 3.5vh 8px 4px;
  128. color: black;
  129. text-decoration: none;
  130. font-size: 14pt;
  131. font-family: 'Roboto', sans-serif;
  132. }
  133.  
  134. .navbar.navbar-default ul li:after {
  135. content: '';
  136. position: absolute;
  137. right: 50%;
  138. bottom: 0;
  139. left: 50%;
  140. height: 3px;
  141. background-color: black;
  142. border-radius: 9px;
  143. transition: all .2s;
  144. }
  145.  
  146. .nav.navbar-nav,
  147. .nav.navbar-nav>li {
  148. float: none;
  149. }
  150.  
  151. .navbar.navbar-default ul li:hover:after {
  152. right: 0;
  153. left: 0;
  154. }
  155.  
  156. .navbar.navbar-default ul.dropdown-menu li,
  157. .navbar.navbar-default ul.dropdown-menu li a {
  158. position: relative;
  159. display: block;
  160. }
  161. </style>
  162. <body>
  163. <div class="container">
  164. <nav class="navbar navbar-default navbar-fixed-top">
  165. <div class="container-fluid">
  166. <!-- Brand and toggle get grouped for better mobile display -->
  167. <div class="navbar-header">
  168. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
  169. <span class="sr-only">Toggle navigation</span>
  170. <span class="icon-bar"></span>
  171. <span class="icon-bar"></span>
  172. <span class="icon-bar"></span>
  173. </button>
  174. </div>
  175. <!-- Collect the nav links, forms, and other content for toggling -->
  176. <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  177. <ul class="nav navbar-nav">
  178. <li><a href="#">Home</a>
  179. </li>
  180. <li class="dropdown">
  181. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">About Me <span class="caret"></span></a>
  182. <ul class="dropdown-menu">
  183. <li><a href="#">Action</a>
  184. </li>
  185. <li><a href="#section3">Contact</a>
  186. </li>
  187. <li><a href="#">Something else here</a>
  188. </li>
  189. <li><a href="#">Separated link</a>
  190. </li>
  191. <li><a href="#">One more separated link</a>
  192. </li>
  193. </ul>
  194. </li>
  195. <li class="dropdown">
  196. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Units <span class="caret"></span></a>
  197. <ul class="dropdown-menu">
  198. <li><a href="#">Action</a>
  199. </li>
  200. <li><a href="#">Another action</a>
  201. </li>
  202. <li><a href="#">Something else here</a>
  203. </li>
  204. <li><a href="#">Separated link</a>
  205. </li>
  206.  
  207. <li><a href="#">One more separated link</a>
  208. </li>
  209. </ul>
  210. </li>
  211. <li><a href="#">Clients</a>
  212. </li>
  213. <li><a href="#contact-me">Contact Me</a>
  214. </li>
  215. </ul>
  216. </div>
  217. <!-- /.navbar-collapse -->
  218. </div>
  219. <!-- /.container-fluid -->
  220. </nav>
  221.  
  222.  
  223. </body>
  224. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement