Beating The Island

June 26, 2021


Beating The Island – General Discussion – ARK – Official Community Forums Jump to content 979) { var navBar = document.querySelector(“.ta_navBar”), ta_Header = document.querySelector(“.ta_Header”), navHeight = navBar.offsetHeight, Header = document.querySelector(“#ipsLayout_header”), stuck = !1, stickPoint = getDistance(); window.onscroll = function(e) { var t = getDistance() – window.pageYOffset, a = window.pageYOffset; 0 >= t && !stuck ? (ta_Header.classList.add(“ta_fixedBar”), Header.style.marginTop = navHeight + “px”, stuck = !0) : stuck && stickPoint >= a && (ta_Header.classList.remove(“ta_fixedBar”), Header.style.marginTop = “0px”, stuck = !1) } } ]]> 979) { //https://codepen.io/alok/pen/rzppea var moveForce = 10; var rotateForce = 20; $(document).mousemove(function(e) { var docX = $(document).width(); var docY = $(document).height(); var moveX = (e.pageX – docX/2) / (docX/2) * -moveForce; var moveY = (e.pageY – docY/2) / (docY/2) * -moveForce; var rotateY = (e.pageX / docX * rotateForce*2) – rotateForce; var rotateX = -((e.pageY / docY * rotateForce*2) – rotateForce); $(‘.ta_palette-show .taPcontainer’) .css(‘left’, moveX+’px’) .css(‘top’, moveY+’px’) .css(‘transform’, ‘rotateX(‘+rotateX+’deg) rotateY(‘+rotateY+’deg)’); }); } ]]>

Source