Files
freeCodeCamp/curriculum/challenges/chinese/03-front-end-libraries/jquery/use-jquery-to-modify-the-entire-page.md

715 B

id, title, challengeType, forumTopicId, required
id title challengeType forumTopicId required
bad87fee1348bd9aecb08826 使用 jQuery 修改整个页面 6 18361
link
https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.0/animate.css

--description--

jQuery 的学习到这里就告一段落了,现在我们来试一试让元素消失的特效。

jQuery 也能选取body标签。

后面的代码效果是使整个body标签淡出:$("body").addClass("animated fadeOut");

接下来我们做一些更有戏剧性的事:给body标签添加animatedhinge类。

--hints--

body标签添加animatedhinge类。

assert($('body').hasClass('animated') && $('body').hasClass('hinge'));

--solutions--