Image Blurs
Add CSS3 Blur filters to your Essential Grid images
1. Blurred image to regular image on hover
back to menuTo use, copy the following CSS over to your Grid's CSS Editor
Normally when a CSS3 blur filter is applied it creates “soft” edges as shown in this example. But crisp edges in the example above are achieved with an “inset border” trick using the :before and :after pseudo elements. This works by matching the border’s color with the page content’s main background color. And then also by reducing the Item Spacing between elements, as the border will effectively serve as the visual spacing instead.
After copying the CSS below over to your Item Skin Editor’s CSS Editor, adjust all occurances of “.eg-washington-” with your skin’s Class Prefix. Then adjust the “background-color” part to match your page content’s background color.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
.eg-washington-wrapper .esg-media-poster { /* adjust filter strength here */ -webkit-filter: blur(10px); filter: blur(10px); /* mouse hover transition */ transition: -webkit-filter 0.3s ease-out, filter 0.3s ease-out; /* performance enhancement */ transform: translate3d(0, 0, 0) !important; } /* show regular image on mouse hover */ .eg-washington-wrapper:hover .esg-media-poster {-webkit-filter: none; filter: none} .eg-washington-wrapper .esg-entry-media:before, .eg-washington-wrapper .esg-entry-media:after, .eg-washington-wrapper .esg-entry-media-wrapper:before, .eg-washington-wrapper .esg-entry-media-wrapper:after { /* adjust border color to match page packground color here */ background-color: #FFF; position: absolute; content: ""; z-index: 9999; } /* adjust the "10px" parts below for the crisp edges */ .eg-washington-wrapper .esg-entry-media:before {top: 0; left: 0; width: 10px; height: 100%} .eg-washington-wrapper .esg-entry-media:after {top: 0; right: 0; width: 10px; height: 100%} .eg-washington-wrapper .esg-entry-media-wrapper:before {top: 0; left: 0; width: 100%; height: 10px} .eg-washington-wrapper .esg-entry-media-wrapper:after {bottom: 0; left: 0; width: 100%; height: 10px} .eg-washington-wrapper {transform: none !important} |
2. Regular image to blurred image on hover
back to menuTo use, copy the following CSS over to your Grid's CSS Editor
Normally when a CSS3 blur filter is applied it creates “soft” edges as shown in this example. But crisp edges in the example above are achieved with an “inset border” trick using the :before and :after pseudo elements. This works by matching the border’s color with the page content’s main background color. And then also by reducing the Item Spacing between elements, as the border will effectively serve as the visual spacing instead.
After copying the CSS below over to your Item Skin Editor’s CSS Editor, adjust all occurances of “.eg-washington-” with your skin’s Class Prefix. Then adjust the “background-color” part to match your page content’s background color.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
.eg-washington-wrapper .esg-media-poster { /* mouse hover transition */ transition: -webkit-filter 0.3s ease-out, filter 0.3s ease-out; /* performance enhancement */ transform: translate3d(0, 0, 0) !important; } /* show blurred image on mouse hover */ .eg-washington-wrapper:hover .esg-media-poster { /* adjust filter strength here */ -webkit-filter: blur(10px); filter: blur(10px); } .eg-washington-wrapper .esg-entry-media:before, .eg-washington-wrapper .esg-entry-media:after, .eg-washington-wrapper .esg-entry-media-wrapper:before, .eg-washington-wrapper .esg-entry-media-wrapper:after { /* adjust border color to match page packground color here */ background-color: #FFF; position: absolute; content: ""; z-index: 9999; } /* adjust the "10px" parts below for the crisp edges */ .eg-washington-wrapper .esg-entry-media:before {top: 0; left: 0; width: 10px; height: 100%} .eg-washington-wrapper .esg-entry-media:after {top: 0; right: 0; width: 10px; height: 100%} .eg-washington-wrapper .esg-entry-media-wrapper:before {top: 0; left: 0; width: 100%; height: 10px} .eg-washington-wrapper .esg-entry-media-wrapper:after {bottom: 0; left: 0; width: 100%; height: 10px} .eg-washington-wrapper {transform: none !important}op: 0; left: 0; width: 100%; height: 10px} .eg-washington-wrapper .esg-entry-media-wrapper:after {bottom: 0; left: 0; width: 100%; height: 10px} .eg-washington-wrapper {transform: none !important} |