???? ??? ????? ????? ???? ??? ??? ???? ?? ???? ???? ??? ??? ????? ? ?? ?????. ??? ?? ? ??? CSS ????? ??? ?????. ? ??? ??? ???? ???, ??? ?? ? ???? ???? ???? ???? ??? ? ????. ? ?? ?????? ????? ????? ??? ?? ???? ??? ?? ?? ?? ??? ?? ??? ?? ???? ????? ??? ?? CSS ?? ????? ???? ??? ??? ?????.
CSS ????? ??? ??? ??????
CSS ????? ??? ??? ???(?: ???, ???, ???)? ?? ???? ??? ? ?? ??? ???, ?? ???? ??? ?????? ?????. ? ??? ? ???? ?? ?? ????? ????? ????? ????. ?? ???, ?? ???, ? ??? ?? ???? ? ???? ??? ??? ?? ??? ??? ? ?? ??? ???? ?????.
CSS ????? ??? ??? ?? ??
??? ??? ??: ???? ?? ??? ??? ?? ???? ???? ?? ????? ?????.
???? ??: ???? ?? ???? ??? ?? ?? ??? ??? ? ??? ?? ?? ??? ?? ? ?? ?????? ?????.
??? ?? ???: CSS? ???? ??? ?????? ?? ??? ???? ???? ??? ??? ???? ??? ? ????.
?? CSS ????? ???? ??? ??
1??: ???? HTML ??
CSS ????? ??? ??? ??? ? ?? ??? ?? HTML ??? ???? ????. ??? ??? ????? ????.
<div> <p>This structure features several carousel items, each containing an image and text, wrapped in div elements with appropriate class names. The main carousel item is marked with the carousel_<em>item--main class, while the adjacent items are labeled as carousel</em><em>item--left and carousel</em>_item--right.</p> <h2> Step 2: Styling the Carousel with CSS </h2> <p>Now, it's time to style the carousel and apply the CSS animated carousel effect. This step involves defining the layout, positioning, and animation transitions.<br> </p> <pre class="brush:php;toolbar:false">.carousel { display: flex; position: relative; overflow: hidden; } .carousel__item { flex: 1; transition: transform 0.5s ease-in-out; position: absolute; opacity: 0; } .carousel__item--main { opacity: 1; transform: translateX(0); } .carousel__item--left { opacity: 0.5; transform: translateX(-100%); } .carousel__item--right { opacity: 0.5; transform: translateX(100%); } .carousel__btns { position: absolute; top: 50%; left: 10px; right: 10px; display: flex; justify-content: space-between; width: 100%; } .carousel__btn { background: rgba(0, 0, 0, 0.5); color: white; border: none; padding: 10px; cursor: pointer; }
? CSS? display: flex? ???? ??? ????? ??? ??? ??? ??? ????? ???? ?? ? ?? ? ?? ??? ?????.
3??: ??? ??? ?? JavaScript ??
???? ???? ??? ? ??? ?? ?? ????? ?????? ??? ??? ? ????. ??? ??? JavaScript ?????.
const carouselItems = document.querySelectorAll('.carousel__item'); let currentItem = document.querySelector('.carousel__item--main'); const leftBtn = document.querySelector('#leftBtn'); const rightBtn = document.querySelector('#rightBtn'); rightBtn.addEventListener('click', function() { currentItem = document.querySelector('.carousel__item--right'); const leftItem = document.querySelector('.carousel__item--main'); carouselItems.forEach((item) => { item.classList = 'carousel__item'; }); currentItem.classList.add('carousel__item--main'); leftItem.classList.add('carousel__item--left'); const currentId = Array.from(carouselItems).indexOf(currentItem); const rightItem = currentId === carouselItems.length - 1 ? carouselItems[0] : carouselItems[currentId + 1]; rightItem.classList.add('carousel__item--right'); }); leftBtn.addEventListener('click', function() { currentItem = document.querySelector('.carousel__item--left'); const rightItem = document.querySelector('.carousel__item--main'); carouselItems.forEach((item) => { item.classList = 'carousel__item'; }); currentItem.classList.add('carousel__item--main'); rightItem.classList.add('carousel__item--right'); const currentId = Array.from(carouselItems).indexOf(currentItem); const leftItem = currentId === 0 ? carouselItems[carouselItems.length - 1] : carouselItems[currentId - 1]; leftItem.classList.add('carousel__item--left'); });
4??: ?? ?? ???
??? ?? ???? ???? ?? ???? CSS ????? ??? ??? ??? ??? ? ??? ???? ?? ????. ???? ??? ????? ? ? ??? ?? ??? ??? ?? ?? ?? ??? ??? ? ????. ?? ???? ???? ? ??? ??? ???? ?? ??? ??? ? ????.
.carousel__item ??? ???? ?????? ?? ?? ???? ??? ?? ???? ???? ?? ?? ??? ??? ?? ? ????.
5??: ?? ??? ?? ????
CSS ????? ??? ??? ?? ?? ?? ?? ?? ? ??? ???? ???? ?? ??? ? ?? ?? ??? ???? ????. ?? ??, ???? ??? ?? ?? ???? ??? ? ??? ??? ????? ??? ??? ? ????.
<div> <p>This structure features several carousel items, each containing an image and text, wrapped in div elements with appropriate class names. The main carousel item is marked with the carousel_<em>item--main class, while the adjacent items are labeled as carousel</em><em>item--left and carousel</em>_item--right.</p> <h2> Step 2: Styling the Carousel with CSS </h2> <p>Now, it's time to style the carousel and apply the CSS animated carousel effect. This step involves defining the layout, positioning, and animation transitions.<br> </p> <pre class="brush:php;toolbar:false">.carousel { display: flex; position: relative; overflow: hidden; } .carousel__item { flex: 1; transition: transform 0.5s ease-in-out; position: absolute; opacity: 0; } .carousel__item--main { opacity: 1; transform: translateX(0); } .carousel__item--left { opacity: 0.5; transform: translateX(-100%); } .carousel__item--right { opacity: 0.5; transform: translateX(100%); } .carousel__btns { position: absolute; top: 50%; left: 10px; right: 10px; display: flex; justify-content: space-between; width: 100%; } .carousel__btn { background: rgba(0, 0, 0, 0.5); color: white; border: none; padding: 10px; cursor: pointer; }
?? ??? ?? ? ????? ???? ??? ?? ?? ???? ??? ? ?? ??? ??? ?? ??? ???? ?? ????? ???? ??? ??? ?????.
CSS ????? ??? ?? ??
- ?? ??? ??? ???? ???? ??? ?? ??????.
??? ?? ??? ????.
???? ???? ????? ??, ?? ?? ?? ?? ?? ?????? CSS ?? ? ????? ?????.
will-change ??: ?? ???? ?????? ?? ??.
- ??? ??? CSS ????? ??? ??? ??? ????? ?????. ??? ?? ???? ???? ??? ????? ????? ??? ??? ?????.
const carouselItems = document.querySelectorAll('.carousel__item'); let currentItem = document.querySelector('.carousel__item--main'); const leftBtn = document.querySelector('#leftBtn'); const rightBtn = document.querySelector('#rightBtn'); rightBtn.addEventListener('click', function() { currentItem = document.querySelector('.carousel__item--right'); const leftItem = document.querySelector('.carousel__item--main'); carouselItems.forEach((item) => { item.classList = 'carousel__item'; }); currentItem.classList.add('carousel__item--main'); leftItem.classList.add('carousel__item--left'); const currentId = Array.from(carouselItems).indexOf(currentItem); const rightItem = currentId === carouselItems.length - 1 ? carouselItems[0] : carouselItems[currentId + 1]; rightItem.classList.add('carousel__item--right'); }); leftBtn.addEventListener('click', function() { currentItem = document.querySelector('.carousel__item--left'); const rightItem = document.querySelector('.carousel__item--main'); carouselItems.forEach((item) => { item.classList = 'carousel__item'; }); currentItem.classList.add('carousel__item--main'); rightItem.classList.add('carousel__item--right'); const currentId = Array.from(carouselItems).indexOf(currentItem); const leftItem = currentId === 0 ? carouselItems[carouselItems.length - 1] : carouselItems[currentId - 1]; leftItem.classList.add('carousel__item--left'); });
- ??? ?? ?? ???? ?? ?? ???? ???? ??? ??? ??? ????? ??? ?? ???? ???? ???? ? ??? ???. aria-label? ???? Tab, Enter ? ??? ?? ???? ???? ??? ? ??? ?????.
??
CSS ????? ??? ??? ??? ????? ??? ??? ???? ?? ??????? ????? ????? ?? ? ????. ? ??? ???? ??? ?????? ???? ??? ?? ???? ??? ? ????. ?? ?? ???? ?????, ?? ??? ?? ????? ????? ???? ??????? ?? ?????. ???? ??, ??? ? ?? ??? ?? ???? ????? ???? ?? ??? ? ????.
? ??? CSS ????? ??? ?? ???: ??? ???? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

JavaScript? ??? ?? ????? ??? ?? ??? ??? ?? ?? ?? ????? ?? ???? ???? ?????. ??? ?? ???? ?? ??? ?? ??? ???? ???? ?? ?? ???? ???? ?????. ?? ??, ??? ? ?? ???? ??? (? : ??? null? ??) ?? ??? ????? ??????. ??? ??? ???? ??? ??? ????. closure?? ?? ??? ?? ??; ? ??? ??? ?? ?? ???? ?? ???? ????. V8 ??? ?? ???, ?? ??, ??/?? ???? ?? ??? ?? ??? ??? ????? ?? ??? ?? ??? ????. ?? ?? ???? ??? ??? ??? ??? ???? ????? ?? ?? ???? ?? ???????.

Node.js?? HTTP ??? ???? ? ?? ???? ??? ????. 1. ?? ????? ????? ??? ??? ? ?? ????? ?? ?? ? https.get () ??? ?? ??? ??? ? ?? ????? ?? ??? ?????. 2.axios? ??? ???? ? ?? ??????. ??? ??? ??? ??? ??? ??? ???/???, ?? JSON ??, ???? ?? ?????. ??? ?? ??? ????? ?? ????. 3. ?? ??? ??? ??? ??? ???? ???? ??? ??? ???? ?????.

JavaScript ??? ??? ?? ?? ? ?? ???? ????. ?? ???? ???, ??, ??, ?, ???? ?? ? ??? ?????. ?? ????? ?? ?? ? ? ??? ????? ?? ??? ??? ????. ??, ?? ? ??? ?? ?? ??? ??? ??? ???? ??? ??? ???? ??? ?? ??? ????. ?? ? ????? ??? ???? ? ??? ? ??? TypeofNull? ??? ?????? ??? ? ????. ? ? ?? ??? ???? ?????? ????? ???? ??? ???? ? ??? ? ? ????.

?????, JavaScript ???! ?? ? JavaScript ??? ?? ?? ?????! ?? ?? ??? ??? ??? ? ????. Deno?? Oracle? ?? ??, ??? JavaScript ?? ??? ????, Google Chrome ???? ? ??? ??? ???? ?????. ?????! Deno Oracle? "JavaScript"??? ????? Oracle? ?? ??? ??? ??????. Node.js? Deno? ??? ? Ryan Dahl? ??? ?????? ???? ????? JavaScript? ??? ???? Oracle? ????? ???? ?????.

?? JavaScript ??? ??? ??? ?????? ?? ??? ?? ?? ??? ?? ???? ????. 1. ??? ???? ???? ?? ??? ?? ? ? ???? ??? ??? ?? ? ?? ????? ?????. 2. Angular? ?????? ??? ?? ???? ? ?? ?? ??? ??? ??? ???? ?????. 3. VUE? ???? ?? ??? ???? ?? ?? ??? ?????. ?? ?? ?? ??, ? ??, ???? ???? ? SSR? ???? ??? ??? ??? ???? ? ??? ?????. ???, ??? ??? ??? ????? ????. ??? ??? ??? ??? ?? ????.

iife (?? invokedfunctionexpression)? ?? ??? ???? ?? ????? ??? ???? ?? ??? ????? ?? ??? ? ?????. ??? ?? ?? ??? ???? ? ?? ??? ??? ?? (function () {/code/}) ();. ?? ???? ??? ?????. 1. ?? ??? ??? ?? ???? ?? ??? ??? ?????. 2. ?? ??? ??? ???? ?? ?? ??? ????. 3. ?? ?? ??? ????? ?? ???? ???????? ?? ? ??. ???? ?? ???? ?? ??? ES6 ??? ??? ??? ?? ? ??? ????? ??? ? ???? ???????.

Cacheapi? ?????? ?? ???? ??? ???? ???, ?? ??? ??? ?? ???? ? ??? ?? ? ???? ??? ??????. 1. ???? ????, ??? ??, ?? ?? ?? ???? ???? ??? ? ????. 2. ??? ?? ?? ??? ?? ? ? ????. 3. ?? ?? ?? ?? ?? ??? ??? ?? ?????. 4. ??? ???? ?? ?? ???? ?? ?? ?? ?? ?? ???? ?? ?? ??? ??? ? ????. 5. ?? ???? ??, ??? ??? ? ??? ??, ?? ??? ? ?? ???? ???? ???? ? ?? ?????. 6.?? ??? ?? ?? ?? ??, ???? ?? ? HTTP ?? ????? ?????? ???????.

??? JavaScript?? ??? ??? ?????? ?? ???????. ?? ??, ?? ?? ? ??? ??? ?? ????? ????? ?????. 1. ?? ??? ??? ????? ???? ??. ()? ?? ??? ??? ?????. ?. ()? ?? ??? ?? ??? ??? ?? ? ? ????. 2. ?? ??? .catch ()? ???? ?? ??? ??? ?? ??? ??????, ??? ???? ???? ????? ??? ? ????. 3. Promise.all ()? ?? ????? (?? ?? ?? ? ??????? ??), Promise.Race () (? ?? ??? ?? ?) ? Promise.AllSettled () (?? ??? ???? ??)
