Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dotted style overlay effect

Tags:

html

css

I have recently stumbled uppon this website GrandPixels and found one interesting effect. In the slideshow section you can see that images are kind of dotted, by zooming in I discovered that these dots are not the parts of the images but sort of overlay, achieved with CSS, I assume. Could anyone explain how this effect is achieved, ideally with css?

like image 706
Ilja Avatar asked Aug 07 '12 08:08

Ilja


1 Answers

It's done with 2x2 overlay transparent PNG image that can be extracted from here:
Background Overlay Pattern

Afterwards the class slideshow-overlay applied to an element to make it work:

.slideshow-overlay {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    overflow: hidden;
    z-index: -99;
    height: 100%;
    width: 100%;
    background: url("images/bg-overlay-pattern.png") left top repeat
}
like image 102
Ilia Avatar answered Oct 17 '22 22:10

Ilia