This scrip changes images based on browser size. The medium to larger works fine, but does anyone know why you never get the smaller image even when the windows is smaller than 480px? It just sticks at medium.

http://codepen.io/hugo/pen/gDKqG

In this section of code

        medium = opts.breakpoints[0] || 480;
        large = opts.breakpoints[1] || 900;

You will notice that there is no entry for small. I think this is a bug.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.