-
Notifications
You must be signed in to change notification settings - Fork 0
Animate logo in the header #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
src/index.ejs
Outdated
| @@ -1,5 +1,6 @@ | |||
| --- | |||
| layout: 'base.ejs' | |||
| title: 'main' | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Плохое название для параметра. Лучше что-то типа area
src/layouts/base.ejs
Outdated
|
|
||
| <%- include('../_includes/header/header.ejs') %> | ||
| <%- include('../_includes/header/header.ejs',{ | ||
| visibility: headerVisibility |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тоже не очень подходящие названия параметров. Вообще не очевидно, что тут утилиты передаются. Все параметры с утилитами должны содержать css в названии
src/assets/script/toggleLogo.js
Outdated
| function handleIntersect(entries, observer){ | ||
| entries.forEach(entry => { | ||
| if (!entry.isIntersecting){ | ||
| logo.style.opacity = 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Просто делать прозрачным не подходит - картинка и ссылка ведь остаются на месте
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
И что с кодстайлом? Хотя бы ; везде должны быть
No description provided.