making bg image fixed work in iOS/Safari
authorOve Klykken <klykken@gmail.com>
Thu, 19 Jun 2014 16:25:46 +0000 (12:25 -0400)
committerOve Klykken <klykken@gmail.com>
Thu, 19 Jun 2014 16:25:46 +0000 (12:25 -0400)
assets/bg.jpg
styles.css

index 1f599ba..ea25b0d 100644 (file)
Binary files a/assets/bg.jpg and b/assets/bg.jpg differ
index 7171fe6..f800eea 100644 (file)
@@ -1,5 +1,14 @@
+html {
+    background-size: cover;
+height: 100%;
+overflow: hidden;
+    background: url(assets/bg2.jpg) center top fixed;
+}
 body {
-    background: url(assets/bg2.jpg) fixed;
+height:100%;
+overflow: auto;
+-webkit-overflow-scrolling: touch;
+background: transparent;
     }
 .hide-text {
     text-indent: 9999px;