Last active
May 17, 2020 17:31
-
-
Save celsojr/4be0f3255da534b02e80e6f8ffab283f to your computer and use it in GitHub Desktop.
Image inner glow effect for https://github.com/FormidableLabs/nuka-carousel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//// ../../styles/_mixins.scss | |
// @mixin prefix($property, $value, $prefixes: webkit moz ms o) { | |
// @each $prefix in $prefixes { | |
// -#{$prefix}-#{$property}: $value; | |
// } | |
// #{$property}: $value; | |
// } | |
// @mixin same-value($value, $properties) { | |
// @each $property in $properties { | |
// #{$property}: $value; | |
// } | |
// } | |
@import "../../styles/mixins"; | |
.slider-slide { | |
cursor: default; | |
img { | |
@include prefix(filter, grayscale(70%)); | |
} | |
&:after { | |
$same-size: 100%; | |
content: ''; | |
position: absolute; | |
@include same-value($same-size, width height); | |
@include same-value(0, top left); | |
@include prefix(background, radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(154,154,154,1) 35%, rgba(0,0,0,1) 100%)); | |
@include prefix(mix-blend-mode, multiply); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment