FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
javaScript/animate.css/1.html at master · wisdomWindy/javaScript · GitHub
wisdomWindy
/
javaScript
Public
forked from
yangxi0126/javaScript
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
javaScript
/
animate.css
/
1.html
Copy path
More file actions
More file actions
Latest commit
History
History
History
41 lines (41 loc) · 1.19 KB
Breadcrumbs
javaScript
/
animate.css
/
1.html
Copy path
File metadata and controls
41 lines (41 loc) · 1.19 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html
>
<
html
lang
="
en
"
>
<
head
>
<
meta
charset
="
UTF-8
"
>
<
title
>
Title
</
title
>
<
link
rel
="
stylesheet
"
href
="
css/animate.min.css
"
>
<
style
>
*
{
margin
:
0
;
padding
:
0
;
}
#
login
{
width
:
300
px
;
height
:
300
px
;
border
:
1
px
solid red;
}
.
animated
.
tada
{
-webkit-animation-duration
:
.3
s
;
/*可以在这里改动画的持续时间,延迟时间和执行次数等*/
}
</
style
>
</
head
>
<
body
>
<
div
id
="
login
"
>
<
input
type
="
text
"
>
<
button
>
登录
</
button
>
</
div
>
</
body
>
<
script
src
="
js/jquery-1.9.1.min.js
"
>
</
script
>
<
script
>
// git地址:https://github.com/daneden/animate.css
$
(
'button'
)
.
on
(
'click'
,
function
(
)
{
var
$login
=
$
(
'#login'
)
;
var
name
=
$
.
trim
(
$
(
'input'
)
.
val
(
)
)
;
if
(
name
==
''
)
{
$login
.
addClass
(
'animated tada'
)
.
one
(
'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend'
,
function
(
)
{
$
(
this
)
.
removeClass
(
'animated tada'
)
;
}
)
;
//one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend',function(){}相当于回调
}
}
)
;
</
script
>
</
html
>
Back
|
FazBrowse Home
|
New Git URL