Responsive image/banner that is also expandable written in HTML/CSS/Javascript or w Jquery -
i looking create image responsive expandable. need in html/css , utlize either javascript or jquery make expandable. i'm able either expandable unit, or responsive image - having hard time combining 2 things. use examples or guidance.
so example scenario be, on intial page load there 924x70 across page (that responsive). if click unit expands 924x250 (this unit needs responsive) - possible?
thanks in advance!
you use responsive design through media queries control initial image size. use jquery adjust size on click.
here basic example uses mouse hover change image size. adjusting window size trigger media queries, need before mouse hover. should straight forward task adjust base example needs.
basic html
<img src="theimage" />
media query
@media screen , (max-width:300px){ img{width:200px;} }
jquery see demo
hope helps...
Comments
Post a Comment