From 89c36d80c576817ca643e0f421859334e65ff468 Mon Sep 17 00:00:00 2001 From: 30secondsofcode <30secondsofcode@gmail.com> Date: Mon, 20 Apr 2020 15:37:20 +0000 Subject: [PATCH] Travis build: 774 --- snippet_data/snippets.json | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/snippet_data/snippets.json b/snippet_data/snippets.json index e6f77fdfe..9c4db89ba 100644 --- a/snippet_data/snippets.json +++ b/snippet_data/snippets.json @@ -870,6 +870,38 @@ "authorCount": 4 } }, + { + "id": "image-hover-rotate", + "title": "Image rotate on hover", + "type": "snippet", + "attributes": { + "fileName": "image-hover-rotate.md", + "text": "Creates a rotate effect for the image on hover.\n\n", + "explanation": "\n\n- Use `scale` and `rotate` when hovering over the parent element (a `figure`) to animate the image, using the `transition` property.\n- Use `overflow: hidden` on the parent container to hide the excess from the image transformation.\n\n", + "browserSupport": { + "text": "\n", + "supportPercentage": 100 + }, + "codeBlocks": { + "html": "
\n \n
", + "css": ".hover-rotate {\n overflow: hidden;\n margin: 8px;\n min-width: 240px;\n max-width: 320px;\n width: 100%;\n}\n\n.hover-rotate img {\n transition: all 0.3s;\n box-sizing: border-box;\n max-width: 100%;\n}\n\n.hover-rotate:hover img {\n transform: scale(1.3) rotate(5deg);\n}", + "js": "", + "scopedCss": "[data-scope=\"image-hover-rotate\"] .hover-rotate {\n overflow: hidden;\n margin: 8px;\n min-width: 240px;\n max-width: 320px;\n width: 100%; }\n\n[data-scope=\"image-hover-rotate\"] .hover-rotate img {\n transition: all 0.3s;\n box-sizing: border-box;\n max-width: 100%; }\n\n[data-scope=\"image-hover-rotate\"] .hover-rotate:hover img {\n transform: scale(1.3) rotate(5deg); }\n" + }, + "tags": [ + "animation", + "visual", + "intermediate" + ] + }, + "meta": { + "hash": "23caf38b0dda75c00c502e42dea58258d7dcabcf812c15a85b826efaacc58435", + "firstSeen": "1587396971", + "lastUpdated": "1587396971", + "updateCount": 2, + "authorCount": 2 + } + }, { "id": "image-overlay-hover", "title": "Image overlay on hover",