?? Safari ???? ? WAAPI (Web Animation API)? ?? ?? ?? ???? (IE ??)? ????? ?????. ??? ????? ???? ??? ??? ??? ??? ????. WAAPI? ?????? ???? ?? ????? (JavaScript?? ???? ?)? ?? API? ???? ?? ??????? ?? ?? ?????. Waapi? ?? ???? Dan Wilson? ?? ? ??? ?? ?? ?? ??? ????.
??? ?? ???? ????? ?? ? ?????. Flip?? ?? JavaScript ??? ????????.
Waapi? ???? ???? ???? ??? ??? ?? ???. ??? ??? ?? ???? ??? ?? ???? ?????.
??? ???
Waapi? ?? ?????? ? ?? ????!
Flip Quick Review : ?? ????? ?? ??? ???? ??? ??? ???? ????. ???? ??? ???? ?? ??? ??????. ?? ?? ??? ??? ??????.
????? ??? ?? ?????? ??? ?? ??????. WAAPI ??, ??? ??? ???? ?? ???? ??/?? ? ??? ??? ???? ?? ???????.
// WAAPI ?? ????? el.style.transform =`Translatey (200px)`; requestAnimationFrame (() => { el.style.transform = ''; });
? ???? ?? ?? ?????? ???????. ??? ???? ? ?? ??? ????.
- ?? ?? ? ???? ??????.
- ?? ?????? ??? ?? ?? ?????. ???? ???? CSS ??? "??"? ??? ??? ???? ??? ????. ?? ?????? ???? ?? ? ??? ???? ??? ?????. ??? GetComputedStyles? ???? ?? ????? ?? ?????? ??? ?????? ???? ?? ?? ??? ???? ? ??????.
- ?? ?????? ?? ??????. ?? ??, ???? ? ??? ??? ???? ???? ? ????? ?? ??? ?? ????????. ??? ?? ????? ?? ???? ???? ? ?? ? ? ????.
- ????????? ???? ? ?? ????. ?? ??, Firefox?? ?? ?????? ???? ????? requestAnimationFrame? ? ? ???????.
requestAnimationFrame (() => { requestAnimationFrame (() => { el.style.transform = ''; }); });
WAAPI? ??? ? ??? ??? ???? ????. ? ??? ?? ??? ? ????. ???? ? ????? ?????. ??? ???? ??? ?? ?? ? ????. ??? requestAnimationFrame ???? ?? ??? ??? ???? ?? ????? ? ???? ?? ??? ?? ? ???? ??? ??? ?? ?? ? ????.
??? WAAPI ??? ?????.
el.classlist.toggle ( 'someclass'); const ? ??? =/* ??/?? ?? ??*/; el.animate (KeyFrames, 2000);
??? ??
???? ?? ?????? ??? ????? ????? ??? JavaScript?? ??? ?????, ?? ??? ??? ?? ?? ?????. ?? ?????? ??? ??????.
??? ??? ?? ?? ???? ???? "???"?? ?? ???????. ??? ???, ??? ??? ???? ??? ???? ?? ? ? ????. React??? ?? DOM ????? ??? ?? ???? ??? ??? ?? ? ??????.
?? ?????? ??? ????? ?? ??? ?? ?? ??? ????? ????. ???? ???? "??? ?"??? ??? ? ? ?????
useLayoutEffect
??? ?? ?????. ??? ??? ???? ?? ???… ? ???? ??? ???? ?? ?? DOM ???? ??? ??? ?? ????? ?????. ?? ??, ??? ??? ????? ?? ????!
?? ??? ?? ??? ????? : ????? DOM ??. ??? ? DOM ???? ?? DOM ??? ??? ????? ???????? CSS? ? ??? ?? ????. (?? ???? ????? ???? ??? ? ? ???? ??? ???? ??? ?? ???? ??? ?? ???????.)
?? ??? ?? ?? ?????. ?? ???? ? ?? ? ??? ???? ??? ??????. ??? ??? ?? ?????.
? ?? ?? ????. Lifecycle Hook Callback : useEffect
? useLayoutEffect
??? ?? ??? ??? ????? ??????. ?? ????? ?? ?? ?????? ?? ??? ? ?? React ????? ???? ??? ?? ???? ???? ??? ????. ??? ?? ?? ???? ???? ?? React Flip ?????? ?????.
useEffect
useLayoutEffect
? ?? ???? ????? ??? ??? ?? ????? ? ?? ??? ? ??? ??? ??? ???? ?? ?????. useLayoutEffect
?? DOM ???? ? ???? ??? ? ?? ?? ??? ??? ?? ? ??? ????. ???? ????? ????? ?? ?? ?????? ?????.
???? ? ?
???? ??? ????? React?? ??? ??? ? ???? ? ??? ????.
100 ?? ? ??? ??????
?? ?????? ?????. ???? ??? ???? 60fps? ??? ??? ???? ?? ??? ??? ???????. ??? 100 ?? ? ??? ?? ???? ??? ?? ???? ?? ??? ? ???? ??????. DevTools? ?? ??? ???? ????? ?? ?????.
???? ???
? setState
???? ???? ???? ?? ????? ??? ??? useState
? ?? ??, ?? ? ????? ??? ??? ? ????. ??? ?? ??? ??? ?? ????. ?? useRef
???? ??? ????? ?? ??? ??? ??? ??????.
???? ???
???? ????? ?? ????? ?????. ?? ?????? ???? ??? ??? ?? ??? ??? getBoundingClientRect
? ??? ?? ?? ?? animate
? ?????. ??? ? "??"? "??"? ??????. ??? ?? ???? ?????? ?????.
?????? ???????
??? ? ?? ??? ???? ???? ???? ?? ? ?? ??????. ??? ??? ? ????. ??? ???? ??? ? ??? ?? ????? ???? ??, ?? ?? ? ????????? ?? ????.
??? reverse
???? ?? ?????? ??? ??? ?? ????. ??? ??? ??? ??? ??? ??? ????? ???? (? : ?? ??? ???? ?? ? ?). ? ?? ??? ??? ????.
- ???? ??? ??/??? ?????
- ?? ?????? ??????
- ??? ??? ?? ??? ?????
- ??? ?????? ??????
React??? ??? ??? ??? ?????. ??? ??? ?? ?? ??? ????. ?? ????? ??? ???????. ?? ??? ID? ?????? ?? ????? ??? ????. ?? ?? ??? ??? ??? ???????. ? ??? ???? ? ?? ??? ????.
- ?? ?? ?? ?? : ?? ??? ? ????? ??? ???? ?? ??? ??????.
- ??? ?? ?? ?? :
getSnapshotBeforeUpdate
??? ??? ??? ??????.
???, ?? ?? ??? getSnapshotBeforeUpdate
???? ?? ????. "??? ??? ???? (? : render
)? ?? ??? ????? ?? ? ? ?? ??? (? : getSnapshotBeforeUpdate
? componentDidUpdate
? ??). ??? ??? ??? ?? ??? ??? ??????.
????? ??? ????
?? ?? ??? ???? ????? ???? ?? ????? ???? ?? ????? ??????. ??? ?? ??? ????? ???? ?? CSS? ??? ? ??? ?????? (? : transform: scale()
). ?? ?????? ????? ??? ????? ?? ?? ?? ????? ?? ?????.
- ????? DOM ?? ?? (??? ?????)
- ?? ???? ?????
? ??? ? ?? ??? ?????. ??? ?? ????? ??? ??? ? ?? DOM ??? ???? (?? ??? ??/??? ????). ? ??? ?? ?????? ?? ? ? ????. ?? ??,? ??????? ??? ???? React-Easy-Flip??? ?????? ???????.
???
React?? ?? ???????? ?? ??? ? ??? ???? ??? ?? ??? ?????? ?? ????. ?? ????? ?????? ??????? ??? ?????. react-flip-toolkit
? ? ????? react-easy-flip
?????.
? ???? ? ???? ?????? ? ??? ?? ?? ?? ??? framer-motion
??????. ?? ?? ?? ???? ?????? ?????! ???? ?? ???? ???? ????.
?? ? ??
- Josh W. Comeau? ?????? ????
- Paul Lewis? Stephen McGruer? ??? ?? ? ?? ????? ??
- Matt Perry? "Magic Motion Inside"
- @KeyFramers ?? "JavaScript? ????? CSS ?? ??"
- Mariko Kosaka? "?? ? ????? ?? ?? (3 ?)"
- Alex Holachek? ??? ?? ??? UI ??????? React
- David Khourshid? "?? ??? ??? ???? ?????"
- Kirill Vasiltsov? "React Hooks??? ??? ?????"
- Jayant Bhawal? "?? ?? ??? ?? ?? ??"
? ?? ? ??? ??? ? ???? ???? ?? ???? ????? ?? ??? ??? ??? ?????. ?? ??? ?? ? ?? ??? ?????.
? ??? React? ?? ?????? ?? ??? ? ?? ?? ?? ?????. ??? ??? 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)

??? ??











CSS? ??? ??? ????? ????? ??? ? ?? CSS? ????? ?? ??????, ?? ?? ? ??? ??, ??? ?? ?? ??? CSS ? ????? ?? ??? ?? ???? ???? ??? ??? ???. 1. ?? CSS? ???? HTML? ?? ?????. 2. JavaScript? ?? ??? CSS ??; 3. ??? ??? ???? ?? ???? ????? ??????. 4. CSS? ???? ???? ??? ????. ?? CSS? ???? ?? ??? ???? Rel = "Preload"?????? ????, ??? ?? ??? ????? ???? ??? ?? ? ??? ???? ??? ?????.

TheBestoproachforcssdspectionseproject'sspecificneeds.forlargerProjects, externalcsSisbetterduetomainabainabainabilitableability ? forsmallerprojectsorsingle-pageapplications, ?? csmightbemoresuitable.it 'scrucialtobalanceprojectsize, ??

???, cssdoesnothavetobeInlowercase. ???, lowercaseisRecomedended for : 1) ??? ? ??, 2) ??? ?? rorsinerrorsinerrorsIngerRorsIngerRorsInteChnologies, 3) ??? ?? ??, ? 4) ?? ? ???? ????.

cssismostlycase-Insensitive, buturlsandfamilynamesarecase-insensitive.1) propertiesandvalueslikecolor : red; anteOtcase-inditive.2) urlsmustmatchtheserver'scase, ?? ??,/images/logo.png.3) fontfamilynames'opens'mustoccase.

AutoPrefixer? ?? ???? ??? ???? ?? ?? ???? CSS ??? ???? ???? ?????. 1. ????? ???? ???? ???? ??? ?????. 2. PostCSS ???? ??, CSS? ?? ???? ???? ?? ???? ??? ???? ??? ?? ??? ?????. 3. ?? ???? ???? ??, ??????? ?? ? ?? ???????? ????? ?? ?????. 4. ???? ???? ???? ???? ?? ?? ????, ???? ?? ??? ?? ???? ???? ????? ?? ???? ?? ????.

CSSCOUNTERSCANAUTOMALLYNUMBERSESSESSENDS.1) USECOUNTER-RESETTIONITIALIZE, CORKENT-INCREMENTTOINCERES, andCOUNTER () ORCOUNTERS () TODISPLAYVALUES.2) COMPINEWITHJAVAISCRIPTORDINAMICCONTENTTOEREACCUTERUPDATES.

CSS?? ??? ? ?? ??? ?? ??? ???? ??, ??, URL ? ??? ?? ????? ?? ?? ??? ?????. 1. ???? ?? ??? ??? ? ???? ?? ?? ??? ??????. 2. ?? 16 ?? ??? ?? ??? ?????, ??? ???? ???? ?? ??? ??? ???? ????. 3. URL? ??? ???? ???? ??? ??? ? ????. 4. ??? ?? ?? (??)? ??? ???? ??? ? ???? ??????? ???????.

theconic-gradient () functionincsscreatescurcular gradientsthattroTecolorstopsaroundacentral point
