WIP
This commit is contained in:
15
dist/app.js
vendored
15
dist/app.js
vendored
@@ -7,7 +7,20 @@
|
|||||||
\***********************/
|
\***********************/
|
||||||
/***/ (() => {
|
/***/ (() => {
|
||||||
|
|
||||||
|
var observer = new IntersectionObserver(function (entries) {
|
||||||
|
entries.forEach(function (entry) {
|
||||||
|
if (entry.isIntersecting) {
|
||||||
|
entry.target.classList.add('visible');
|
||||||
|
} else {
|
||||||
|
entry.target.classList.remove('visible');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}, {
|
||||||
|
threshold: 0.1 // adjust as needed
|
||||||
|
});
|
||||||
|
document.querySelectorAll('.watch-vp').forEach(function (el) {
|
||||||
|
observer.observe(el);
|
||||||
|
});
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
|
|||||||
2
dist/mix-manifest.json
vendored
2
dist/mix-manifest.json
vendored
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"/app.js": "/app.js?id=099e96d934e937b07341f2ca9fb82ec2",
|
"/app.js": "/app.js?id=1121838d4c96cc32c63518343f8e22d9",
|
||||||
"/app.css": "/app.css?id=159c4185aeca54a7f71b7d4d18e14c75"
|
"/app.css": "/app.css?id=159c4185aeca54a7f71b7d4d18e14c75"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
const observer = new IntersectionObserver((entries) => {
|
||||||
|
entries.forEach(entry => {
|
||||||
|
if (entry.isIntersecting) {
|
||||||
|
entry.target.classList.add('visible');
|
||||||
|
} else {
|
||||||
|
entry.target.classList.remove('visible');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}, {
|
||||||
|
threshold: 0.1 // adjust as needed
|
||||||
|
});
|
||||||
|
|
||||||
|
document.querySelectorAll('.watch-vp').forEach(el => {
|
||||||
|
observer.observe(el);
|
||||||
|
});
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<h1>{{ headline }}</h1>
|
<h1 class="watch-vp">{{ headline }}</h1>
|
||||||
{{#if sub_headline}}
|
{{#if sub_headline}}
|
||||||
<p class="sub-headline">{{ sub_headline }}</p>
|
<p class="sub-headline">{{ sub_headline }}</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|||||||
Reference in New Issue
Block a user