This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const CMS_URL = "http://localhost:1337" | |
/* | |
Create an image object for strapi-plugin-local-image-sharp | |
Docs: https://github.com/strapi-community/strapi-plugin-local-image-sharp | |
Credit: Jonas Sandstedt, Fully Studios | |
Licence: MIT | |
Basic Usage: | |
<Image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Activate a smooth scroll whn using inline anchor links, example: #about */ | |
html { | |
scroll-behavior: smooth; | |
} | |
/* Deactivate the smooth scroll if users has choose to reduce motion in their OS */ | |
@media (prefers-reduced-motion: reduce) { | |
html { | |
scroll-behavior: auto; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @class FullyReveal | |
* Use IntersectionObserver to detect if an element | |
* is in view or not. Then add and delete a class. | |
* Use this to animate the element | |
* | |
* Usage: Add `data-reveal` on the DOM objects you wanna listen to. | |
* You can also set `data-revealThreshold="0.5"` for a different threshold, | |
* else it fallbacks to 0.25 | |
* If you only want it to trigger once, write `data-reveal="once"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Detect Full-Screen</title> | |
<style> | |
* { | |
font-family: sans-serif; | |
line-height: 1.5; |