ryanve / response.js

Responsive design toolkit
http://responsejs.com
Other
801 stars 123 forks source link

Issue in using custom breakpoints #58

Open btkarthick opened 9 years ago

btkarthick commented 9 years ago

Hi, I have tried to use custom breakpoints like [0, 768] and using the below in the html markup.

img data-src0='images/logo-xs.png' data-src768='images/logo.png'

When the page is loaded in desktop resolution and resized to mobile then the above working fine. But when the page is loaded in mobile resolution(eg: 320px X 480px) and resized towards desktop then @768 the image should change but its not changing and the image in data-src0 remains.

So, my question is that responsejs only work in these custom breakpoints(as give in the docs) [0, 320, 481, 641, 961, 1025, 1281]?

I am using 0.9.1 version.

Any help would be greatly appreciated.