-
Notifications
You must be signed in to change notification settings - Fork 0
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
KDT5_LeeJiHun #75
Open
luckfeat
wants to merge
1
commit into
main
Choose a base branch
from
KDT5_LeeJiHun
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
KDT5_LeeJiHun #75
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+175 KB
asset/images/3d-pulse-headset-range-image-block-03-en-13sep22 (1).webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+463 KB
asset/images/banner/EA-Sports-PGA-tour-homepage-hero-desktop-en-02-04apr23.webp
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+252 KB
asset/images/banner/Spring-Sale-homepage-hero-desktop-01-22mar23$en.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+218 KB
.../images/banner/god-of-war-ragnarok-ngplus-homepage-hero-banner-desktop-01-en-31mar23.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+85.2 KB
asset/images/logo/god-of-war-ragnarok-no-shadow-logo-01-03nov22$en.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
const sharedNav = document.querySelector('.shared-nav-container'); | ||
const gameWrapper = document.querySelector('.game-wrapper'); | ||
let navIsScrolled = false; | ||
|
||
window.addEventListener('scroll', () => { | ||
if (!navIsScrolled && scrollY > 37) { | ||
navIsScrolled = true; | ||
sharedNav.classList.add('scrolled'); | ||
gameWrapper.classList.add('scrolled'); | ||
} else if (navIsScrolled && scrollY < 37) { | ||
navIsScrolled = false; | ||
sharedNav.classList.remove('scrolled'); | ||
gameWrapper.classList.remove('scrolled'); | ||
} | ||
}); | ||
|
||
const fadeEls = document.querySelectorAll('.fade-in'); | ||
fadeEls.forEach((fadeEl, index) => { | ||
gsap.to(fadeEl, 1, { | ||
delay: (index + 1) * 0.6, | ||
opacity: 1, | ||
}); | ||
}); | ||
|
||
new Swiper('.game-wrapper .swiper-container', { | ||
allowTouchMove: false, | ||
slidesPerView: 1, | ||
}); | ||
|
||
new Swiper('.hardware-wrapper .swiper-container', { | ||
centeredSlides: true, | ||
allowTouchMove: false, | ||
effect: 'fade', | ||
fadeEffect: { | ||
crossFade: true, | ||
fadeOut: 500, | ||
fadeIn: 500, | ||
delay: 2000, | ||
}, | ||
slidesPerView: 1, | ||
pagination: { | ||
el: '.hardware-wrapper .swiper-pagination', | ||
clickable: true, | ||
renderBullet: function (index, className) { | ||
let spanArray = [ | ||
`PS5 Console`, | ||
`DualSense™ Wireless Controller`, | ||
`PULSE 3D™ Wireless Headset`, | ||
`DualSense Edge`, | ||
`Media Remote`, | ||
`HD Camera`, | ||
`PS5 Console Covers`, | ||
]; | ||
let paginationTemplate = ` | ||
<div class="${className}"> | ||
<div class="media-block"> | ||
<div class="media-block__inner"> | ||
<img src="asset/images/horizontal-product-${index}.webp"> | ||
</div> | ||
<div class="media-block__inner text"> | ||
<span> | ||
${spanArray[index]} | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
`; | ||
return paginationTemplate; | ||
}, | ||
}, | ||
}); |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
position: sticky; 로도 같은 스타일을 재연할 수 있습니다.
css로 처리가능한 로직들은 css로 처리하는게 좋습니다.
참고사항 : https://developer.mozilla.org/en-US/docs/Web/CSS/position