1. react forwardRef
https://www.daleseo.com/react-forward-ref/
[React] forwardRef 사용법
Engineering Blog by Dale Seo
www.daleseo.com
2. react project structure
https://ko.reactjs.org/docs/faq-structure.html
파일 구조 – React
A JavaScript library for building user interfaces
ko.reactjs.org
3. slot machine animation
https://stackoverflow.com/questions/62426257/creating-an-animation-for-a-basic-react-slot-machine
Creating an animation for a basic React slot machine
I'm quite new to react and a simple slot machine is my first mini-project. Currently I have completed the logic for displaying random emojis after the button is pressed. The next step for me, before
stackoverflow.com
4. chart 라이브러리 nivo
https://nivo.rocks/components/
Components | nivo
nivo.rocks
5. 회전하는 원 로딩 애니메이션 만들기
https://code-study.tistory.com/31
CSS 로딩UI 만들기 #1. 회전하는 원(Circle)
CSS 로딩UI 만들기 #1. 회전하는 원(Circle) 웹사이트에 자주 사용되는 로딩 UI 중, 무한으로 회전하는 원(Circle)을 사용하는 경우가 있다. 이때 돌아가는 원을 GIF이미지로 만들어 사용하는 경우도
code-study.tistory.com
6. interactive website를 모아놓은 곳
https://www.awwwards.com/websites/web-interactive/
Best Web and Interactive Websites
From United Kingdom December 17, 2021
www.awwwards.com
7. emotion/react 에서 keyframes쓰는 법
/** @jsxImportSource @emotion/react */
import { css, keyframes } from "@emotion/react";
const bounce = keyframes`
from, 20%, 53%, 80%, to {
transform: translate3d(0,0,0);
}
40%, 43% {
transform: translate3d(0, -30px, 0);
}
70% {
transform: translate3d(0, -15px, 0);
}
90% {
transform: translate3d(0,-4px,0);
}
`;
const spinCircle = keyframes`
from {
transform:translate(-50%, -50%) rotate(0);
}
to {
transform:translate(-50%, -50%) rotate(360deg);
}
`;
const loadingBox_circle = css`
border: 10px solid red;
border-radius: 100px;
width: 100px;
height: 100px;
border-top: 10px solid green;
animation: ${spinCircle} 0.8s linear infinite;
margin: 0 auto;
margin-top: 100px;
`;
const Emotion = () => {
return (
<div>
<div css={loadingBox_circle}></div>
</div>
);
};
export default Emotion;
8. offsetTop
html 엘리먼트에 내장된 읽기 전용 값
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetTop
HTMLElement.offsetTop - Web APIs | MDN
The HTMLElement.offsetTop read-only property returns the distance of the outer border of the current element relative to the inner border of the top of the offsetParent node.
developer.mozilla.org
9. accordion design
https://codesandbox.io/s/nifty-ardinghelli-ybd6c?file=/src/styles.css
nifty-ardinghelli-ybd6c - CodeSandbox
nifty-ardinghelli-ybd6c using classnames, react, react-dom, react-scripts
codesandbox.io
'TIL' 카테고리의 다른 글
[TIL] 20220104 error / breadcrumbs (0) | 2022.01.04 |
---|---|
[TIL] 20220103 에러 (0) | 2022.01.04 |
[TIL] 20211227 에러/ quick filter/ forwardRef (0) | 2021.12.27 |
[TIL] 20211224 리액트공부/실용주의 사고와 학습 (0) | 2021.12.24 |
[TIL] 20211222 ag grid context 기능/ .. (0) | 2021.12.22 |