Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix animation on page load
  • Loading branch information
Debatty-Tom committed Oct 9, 2025
commit d07163cc767bbd236832e186892e503f2901f8f1
2 changes: 1 addition & 1 deletion dist/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions resources/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@
max-width: 100%;
overflow: auto;
z-index: 9999;
transition: transform 0ms ease-out,
opacity 0ms ease-out;
transition: transform 200ms ease-out,
opacity 200ms ease-out;

&--closing {
opacity: 0;
transform: translateY(10px);
}
&--pre-init {
transition: none;
}
&--show {
.cookies__btn {
&--customize {
Expand Down
10 changes: 6 additions & 4 deletions resources/views/cookies.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@
</div>
</aside>

{{-- STYLES & SCRIPT : feel free to remove them and add your own --}}

<script id="cookies-script" data-cookie-consent data-config="{{ $scriptConfig }}">
{!! file_get_contents(LCC_ROOT . '/dist/script.js') !!}
{{-- STYLES & SCRIPT : feel free to remove them and add your own
This script can't be removed --}}
<script data-cookie-consent>
const element = document.querySelector('#cookies-policy');
element.classList.add('cookies--pre-init');
element.classList.add('cookies--closing');
</script>
<style data-cookie-consent>
{!! file_get_contents(LCC_ROOT . '/dist/style.css') !!}
Expand Down