fix: js error
This commit is contained in:
@ -58,7 +58,7 @@ el.style.setProperty('--max-height', height + 'px')
|
||||
</style>
|
||||
|
||||
<script>
|
||||
(function () {
|
||||
;(function () {
|
||||
var el = document.querySelector('.snippet-demo__height-transition__el')
|
||||
var height = el.scrollHeight
|
||||
el.style.setProperty('--max-height', height + 'px')
|
||||
|
||||
@ -105,7 +105,7 @@ btn.onmousemove = function(e) {
|
||||
</style>
|
||||
|
||||
<script>
|
||||
(function () {
|
||||
;(function () {
|
||||
var btn = document.querySelector('.snippet-demo__mouse-cursor-gradient-tracking')
|
||||
btn.onmousemove = function (e) {
|
||||
var x = e.pageX - btn.offsetLeft - btn.offsetParent.offsetLeft
|
||||
|
||||
Reference in New Issue
Block a user