Srcerer is a collection of 3 image stacks, each serving different needs.
The main driving force behind Srcerer is to use the latest html to ensure that the most appropriate image is used on every device type / size. As such I would always recommend using one of the first 2 options listed above.
You simply need to:
That's it!
Of course there are countless options if you want to add some content to your image or apply an effect. Examples of these are below and on the main Srcerer page (and downloadable project file).
This stack will choose the most appropriately sized image from the range provided.
The example below has the image size/width stated on the image so that you can see the image selected on different device sizes (note you will need to refresh the page to trigger a reload when resizing).
The image sizes made available to this particular stack are:
Notes:
The browser takes into consideration retina device resolutions and uses this along side the CSS pixel width value to determine the best image to use!
You can even add some 'image conditions' to the stack to tell it how much of the screen is being used at different breakpoints (the default is for the browser to assume that the image is taking up all of the available width). This example tells the browser that the image should take up the full width of the screen up to a max-width
of 1140px
(as this is the max-width
of the container that the image is in).
With the Art Direction stack we can specify different images to be used at different breakpoints. This is a great way of ensuring that the image is meaningful (and important areas are clear) on all device sizes.
Depending on the device that you are viewing on you will either see a landscape image of a woman by the sea below (if on desktop) or a portrait image of the same scene (if on mobile).
If you want to tweak the default settings then you can do so. For instance you can:
Srcerer lets you add content on top of your images in one of 7 set places. A random selection of some of the examples are below.
There are 6 different hover effects that you can apply to the image. A few of these are showcased below.
You can opt to apply a parallax effect to any Srcerer image and state which direction you wish the effect to happen.
(These examples also show how to add content in a 'card' type effect!)
There is even more that you can do with Srcerer images, including:
You can of course even combine any of these effects together to create some truly eye catching images on your site!
You can use Source's powerful grid stacks to present your images in various beautiful and interesting ways. These types of image grid would often require the use of background images but Srcerer lets you use the regular foreground images (therefore retaining all of the SEO benefits - alt tag etc!).
Using different spans here to create an irregular looking grid. And you can obviously still add content / hover effects etc (hover over the yellow picture to see an example!).
A demo of the Srcerer stack from Shaking the Habitual.
Demo project built using Source - the FREE 'micro' framework for RapidWeaver.