Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support gradient shadow #6

Open
montanaflynn opened this issue Jun 25, 2018 · 1 comment
Open

Support gradient shadow #6

montanaflynn opened this issue Jun 25, 2018 · 1 comment

Comments

@montanaflynn
Copy link

Replacing a solid background with background: linear-gradient(white, #cccccc);

screen shot 2018-06-25 at 10 54 08 pm

@danielmahon
Copy link

danielmahon commented Sep 14, 2018

@montanaflynn you can just replace the top and bottoms colors with whatever background you would like:

          <ScrollShadow
            shadowSize={8}
            topShadowColors={{
              inactive: 'white',
              active:
                'radial-gradient(at top, rgba(0, 0, 0, 0.2), transparent 70%)',
            }}
            bottomShadowColors={{
              inactive: 'white',
              active:
                'radial-gradient(at bottom, rgba(0, 0, 0, 0.2), transparent 70%)',
            }}
          >
            {content}
          </ScrollShadow>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants