Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4a98d32a
authored
Apr 17, 2013
by
Bence Dányi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: animate height instead of max-height
parent
7140d8c6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
miscellaneous/temp-design/better-animations.html
+4
-4
No files found.
miscellaneous/temp-design/better-animations.html
View file @
4a98d32a
...
...
@@ -6,8 +6,8 @@
<style>
.container
{
width
:
400px
;
-webkit-transition
:
max-
height
700ms
;
max-
height
:
0px
;
-webkit-transition
:
height
700ms
;
height
:
0px
;
overflow
:
hidden
;
background-color
:
red
;
}
...
...
@@ -20,9 +20,9 @@
document
.
getElementById
(
'toggle-css-btn'
).
onclick
=
function
(){
var
el
=
$
(
'#toggle-css'
);
if
(
!
el
.
hasClass
(
'opened'
))
{
el
.
css
(
'
max-
height'
,
el
.
find
(
'.details'
)[
0
].
offsetHeight
||
'1000px'
);
el
.
css
(
'height'
,
el
.
find
(
'.details'
)[
0
].
offsetHeight
||
'1000px'
);
}
else
{
el
.
css
(
'
max-
height'
,
'0px'
);
el
.
css
(
'height'
,
'0px'
);
}
$
(
'#toggle-css'
).
toggleClass
(
'opened'
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment