Giter Site home page Giter Site logo

50days50projects's Introduction

50days50projects

HTML+CSS+JS practice!

class1~10

html相关

<small></small> 旁注,小字体

js相关

const xxxx  = document.querySelector(".xxxx");
xxxx.classList.toggle("active");
xxxx.classList.add("active");
xxxx.classList.remove("active");

//获取元素距离页面顶部的距离
xxxx.box.getBoundingClientRect().top()

//audio
document.getElementById(sound).play()    // 播放音频
song.pause()  //暂停
song.currentTime = 0  //设置时间起点

css相关

透明度
opacity: 0;
高斯模糊
filter: blur(0px);
背景颜色线性过渡
background-image: linear-gradient(90deg,#7d5fff,#322232);
横向移动
transform: translateX(200px);
旋转
transform: rotate(-20deg);
设置旋转端点
transform-origin: top left;
设置动画过渡方式
transition: transform 0.5s ease-in;
指定flex变化时的动画效果
transition: flex 0.7s ease-in;
设置动画缓动函数
transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
鼠标悬浮手势
cursor: pointer;

css伪类

//处于激活状态时常用好看的处理方式
.btn:active{
    box-shadow: 2px 2px 5px #fc894d;给个阴影
    transform: scale(0.98);缩放一下

}
//处于选中时去除轮廓线
.btn:focus{
    outline: none;
}

布局相关

流式布局
display:flex
flex-direction:row/column  行方向/列方向
align-items:center  垂直居中
justify-content:center  水平居中

display:inline-flex

50days50projects's People

Contributors

fanzejie 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.