Giter Club home page Giter Club logo

css-example's Introduction

header
CSS을 활용한 예제 연습

🛠️ 기술 스택 🛠️

🧰 개발 도구 🧰

구현 사항

  • 다크 모드 구현
  • 영상 매체를 활용한 백그라운드 영상 재생
  • 반응형 애니메이션 구현 (sliding menu)
  • 반응형 UI 제작

VanilaJs을 활용한 다크 모드 구현

  • white 모드 (Default)

  • dark 모드

해당 소스 코드

const dayNight = document.querySelector(".day");
const menu = document.querySelector(".menu");
const body = document.querySelector("body");
const navigation = document.querySelector(".navigation");

dayNight.onclick = function(){
    body.classList.toggle("dark");
    dayNight.classList.toggle("active");
};

menu.onclick = function(){
    menu.classList.toggle("active");
    navigation.classList.toggle("active");
};

결과 : CSS내 active 옵션에 따른 출력 결과 조정

영상 매체를 활용한 백그라운드 영상 재생

  • html5 기능 중 하나로 Video 태그를 활용한 백그라운드 영상 반복 재생

반응형 애니메이션 구현 (sliding menu)

  • 특정 버튼 클릭시 왼쪽에서 메인 화면으로 슬라이딩 하는 메뉴 화면 구현
  • 사용자가 메뉴 등장에 따른 지루함을 느끼지 않도록 이동 화면 구현

반응형 UI 제작

  • 디바이스에 맞는 해상도에 따른 적절한 화면 크기 조정
  • 화면 크기 조정에 따른 지연시간 최적화
  • 해당 화면은 540x670 상의 디바이스에서 동작하는 화면

css-example's People

Contributors

km-kwon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.