Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
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
Hide 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 @@
...
@@ -6,8 +6,8 @@
<style>
<style>
.container
{
.container
{
width
:
400px
;
width
:
400px
;
-webkit-transition
:
max-
height
700ms
;
-webkit-transition
:
height
700ms
;
max-
height
:
0px
;
height
:
0px
;
overflow
:
hidden
;
overflow
:
hidden
;
background-color
:
red
;
background-color
:
red
;
}
}
...
@@ -20,9 +20,9 @@
...
@@ -20,9 +20,9 @@
document
.
getElementById
(
'toggle-css-btn'
).
onclick
=
function
(){
document
.
getElementById
(
'toggle-css-btn'
).
onclick
=
function
(){
var
el
=
$
(
'#toggle-css'
);
var
el
=
$
(
'#toggle-css'
);
if
(
!
el
.
hasClass
(
'opened'
))
{
if
(
!
el
.
hasClass
(
'opened'
))
{
el
.
css
(
'
max-
height'
,
el
.
find
(
'.details'
)[
0
].
offsetHeight
||
'1000px'
);
el
.
css
(
'height'
,
el
.
find
(
'.details'
)[
0
].
offsetHeight
||
'1000px'
);
}
else
{
}
else
{
el
.
css
(
'
max-
height'
,
'0px'
);
el
.
css
(
'height'
,
'0px'
);
}
}
$
(
'#toggle-css'
).
toggleClass
(
'opened'
);
$
(
'#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