Skip to content

Commit

Permalink
removed bgs from demo as causing perf issues
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfoxy committed Mar 14, 2019
1 parent c631890 commit 2e87d7f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
9 changes: 1 addition & 8 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">

<script src="./lib/laxxx.min.js"></script>
<!-- <script src="../src/laxxx.js"></script> -->

<script type="text/javascript">
window.onload = function() {
Expand Down Expand Up @@ -189,14 +190,6 @@


<body>
<div class="bg" laxxx-opacity="0 0, (1*vh) 1, (3*vh) 0" style="background: #511b9f" laxxx-optimize="false">

</div>

<div class="bg" laxxx-opacity="(vh) 0, (2*vh) 1" style="background: rgb(238, 63, 148)" laxxx-optimize="false">

</div>

<div id="header" class="section" laxxx-opacity="0 1, (0.8*vh) 0">
<img src="./img/l.svg" style="width: 19vh; margin-left: 5vh;" laxxx-translate-x="0 0, vh 200" />
<img src="./img/a.svg" laxxx-translate-x="0 0, vh -200" />
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
"name": "laxxx",
"version": "0.0.1",
"scripts": {
"build": "babel src -d lib; uglifyjs lib/laxxx.js -o lib/laxxx.min.js -c -m; gzip < lib/laxxx.min.js > lib/laxxx.min.js.gz",
"minify": "uglifyjs lib/laxxx.js -o lib/laxxx.min.js -c -m",
"zip": "gzip < lib/laxxx.min.js > lib/laxxx.min.js.gz"
"build": "babel src -d lib; uglifyjs lib/laxxx.js -o lib/laxxx.min.js -c -m; gzip < lib/laxxx.min.js > lib/laxxx.min.js.gz"
},
"dependencies": {
"@babel/cli": "^7.2.3",
Expand Down
2 changes: 0 additions & 2 deletions src/laxxx.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,6 @@ laxxx.update = function(y) {
var momentum = lastScroll-y
lastScroll = y

// console.log(momentum)

parallaxObjects.forEach(function(o) {
var transformString = ""
var r = o["laxxx-anchor-top"] ? o["laxxx-anchor-top"]-y : y
Expand Down

0 comments on commit 2e87d7f

Please sign in to comment.