css3 columns + responsive layouts: animate item position changes.using css3 or jquery/javascript -
i'm creating masonry style layout css3 columns instead allowed me build layout greater ease , more precisely, since i'm building responsive layout.
now, i'm using css3 media queries change amount of columns displayed based on size of window. want animate change in position of elements of columns between columns when number of columns change window resized.
here of css code:
@media , (min-width: 961px) , (max-width: 1599px){ #portfolio { width:100%; position:relative; text-align:center; -moz-column-count:4; -moz-column-gap:3px; -webkit-column-count:4; -webkit-column-gap:3px; column-count:4; column-gap:3px; } } @media , (min-width: 1600px){ #portfolio { width:100%; position:relative; text-align:center; -moz-column-count:5; -moz-column-gap:3px; -webkit-column-count:5; -webkit-column-gap:3px; column-count:5; column-gap:3px; } } anyone know how approach this? tia.
see animation-property:
/* animation property */ animation-property: width; animation-property: height; transition-duration: 1s; /* webkit */ -webkit-animation-property: width; -webkit-animation-property: height; -webkit-transition-duration: 1s; /* moz */ -moz-animation-property: width; -moz-animation-property: height; -moz-transition-duration: 1s; /* opera */ -o-animation-property: width; -o-animation-property: height; -o-transition-duration: 1s; example: http://theboywhocriedfox.com/demo/animate-transitions-with-media-queries/
Comments
Post a Comment