Coder Social home page Coder Social logo

my-blog's Introduction

home heroText bgImage bgImageStyle
true
すずめの戸締まり
bgImg1.jpg
height
95vh
<script> export default { data() { return { typewriter: '', i: 0, timer: 0, str: '//输入你要显示的的文本', } }, mounted () { try { this.createSlide(); const node = document.getElementsByClassName("footer-wrapper")[0].children[0]; node.querySelector("i").className = "iconfont reco-gitlab"; node.querySelector("a").innerHTML = "嘿嘿嘿"; node.querySelector("a").href = "javascript:;"; node.querySelector("a").target = "_self"; } catch(err) { console.log(err) } }, methods: { scrollFn() { const windowH = document.getElementsByClassName('hero')[0].clientHeight; // 获取窗口高度 document.documentElement.scrollTop = windowH; // 滚动条滚动到指定位置 }, createSlide() { const ifJanchor = document.getElementById("JanchorDown"); ifJanchor && ifJanchor.parentNode.removeChild(ifJanchor); let a = document.createElement('a'); a.id = 'JanchorDown'; a.className = 'anchor-down'; document.getElementsByClassName('hero')[0].append(a); let targetA = document.getElementById("JanchorDown"); targetA.addEventListener('click', e => { // 添加点击事件 this.scrollFn(); }) } } } </script> <style> /* .footer-wrapper span:nth-child(1) { display: none; } */ blockquote { border-left-color: pink !important; } .anchor-down { display: block; margin: 12rem auto 0; bottom: 45px; width: 20px; height: 20px; font-size: 34px; text-align: center; animation: bounce-in 2s 1s infinite; position: absolute; left: 50%; bottom: 8%; margin-left: -10px; cursor: pointer; } @-webkit-keyframes bounce-in{ 0%{transform:translateY(0)} 20%{transform:translateY(0)} 50%{transform:translateY(-20px)} 80%{transform:translateY(0)} to{transform:translateY(0)} } .anchor-down::before { content: ""; width: 20px; height: 20px; display: block; border-right: 3px solid #fff; border-top: 3px solid #fff; transform: rotate(135deg); position: absolute; bottom: 10px; } .anchor-down::after { content: ""; width: 20px; height: 20px; display: block; border-right: 3px solid #fff; border-top: 3px solid #fff; transform: rotate(135deg); } .hero>div { display: flex; flex-direction: column; } .hero h1, .hero p { width: 0; white-space: nowrap; font-family: monospace; border-right: 1px solid #00DADA; overflow : hidden; display: inline-block !important; transition: none !important; transform: none !important; opacity: 1 !important; color: #fff } .hero h1 { text-shadow: 0 0 10px #848484; animation: title 2s steps(8) forwards, blink 1s infinite normal; } .hero p { text-shadow: 0 0 8px #848484; animation: subtitle 2.5s steps(20) forwards, blink 1s infinite normal; } @keyframes title{ 0%{width: 0;} 100%{width: 330px;} } @keyframes subtitle{ 0%{width: 0;} 100%{width: 270px;} } @keyframes blink{ 50%{border-color: transparent;} } </style>

my-blog's People

Contributors

coderhyh avatar

Stargazers

 avatar Channel 1 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.