Giter VIP home page Giter VIP logo

Comments (6)

LoeiFy avatar LoeiFy commented on July 23, 2024

初始情况下,body 有 loading 这个 class,所以会显示加载效果。当首页大图加载好的时候,js 会修改 body 的 class,去掉 loading 这个 class,这个时候加载效果就没有了

from diaspora.

MrCloudyGod avatar MrCloudyGod commented on July 23, 2024

那么如果我要修改加载动画,只需要动body:before里面的样式咯……
可是如果我想要有好几个div组成的动画,要怎么写进去呢……

from diaspora.

LoeiFy avatar LoeiFy commented on July 23, 2024

你去掉原来的动画,然后自己在合适位置加上自己的动画上去。下面是页面完成加载首页大图时候 js 的动作,你可以按照需求更改

https://github.com/LoeiFy/Diaspora/blob/master/assets/Diaspora.js#L292-L294

from diaspora.

MrCloudyGod avatar MrCloudyGod commented on July 23, 2024

感谢,主要是看不太懂对应的到底是CSS里的哪几个样式代码…就不知道该删哪些……我再研究一下咯

from diaspora.

LoeiFy avatar LoeiFy commented on July 23, 2024

@MrCloudyGod 不难的,注意 body 有 loading 这个 class 时候,页面是空白的,加载完成之后 js 才会把这个 loading class 去掉

from diaspora.

MrCloudyGod avatar MrCloudyGod commented on July 23, 2024

感谢,我也不知道我注释掉的是不是对的,反正效果改成功了~还有个问题下次再开issue问吧233

from diaspora.

Related Issues (20)

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.