G
OpenAI · gpt-oss-120b
환영 페이지에 들어갈 부드러운 글자 페이드인 + 좌→우 스윕 라이트 애니메이션을 CSS로 만들어줘. 가능하면 예시 HTML 한 줄 포함해서.
좋아요. 핵심 아이디어는 ::after로 비스듬한 그라디언트 스트라이프를 만들고, nth-child로 각 글자에 시차를 둬서 페이드인하는 거예요. 아래는 깔끔하게 정리한 CSS·HTML 한 묶음입니다.
/* ─── 각 글자에 시차 부여 ─── */ .welcome span:nth-child(1) { animation-delay: 0.2s; } .welcome span:nth-child(2) { animation-delay: 0.4s; } .welcome span:nth-child(3) { animation-delay: 0.6s; } .welcome span:nth-child(4) { animation-delay: 0.8s; } .welcome span:nth-child(5) { animation-delay: 1.0s; } /* ─── 글자 위로 스윕 라이트 ─── */ .welcome::after { content: ''; position: absolute; left: -100%; top: 0; width: 120%; height: 100%; background: linear-gradient( 120deg, transparent, rgba(255,255,255,0.4), transparent ); transform: skewX(-30deg); animation: sweep 2s forwards 1.5s; } /* ─── 키프레임 정의 ─── */ @keyframes fadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } @keyframes sweep { from { left: -100%; } to { left: 100%; } }
글자별 span으로 감싸기만 하면 끝이에요. fadeIn은 글자 자체에, sweep은 컨테이너의 ::after에 걸려있어 깔끔하게 분리됩니다.
"도시 미래에 대한 짧은 시 한 편을 한국어로 써줘. 5행 이내."
🔒
이 사이트는 절대 당신의 API Key를 저장하지 않습니다. 키는 요청 순간에만 사용되며 서버·DB·로그 어디에도 기록되지 않습니다.