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

Contribution: cool hover fadeout for demo/example cell text #135

Closed
DTrejo opened this issue Oct 31, 2019 · 1 comment
Closed

Contribution: cool hover fadeout for demo/example cell text #135

DTrejo opened this issue Oct 31, 2019 · 1 comment

Comments

@DTrejo
Copy link

DTrejo commented Oct 31, 2019

How to show cell contents text on hover, with delayed fade-out:

<HeatMap
  // [...]
  cellRender={value =>
    value > 0 && (
      <div
        sx={{
          color: 'transparent',
          transition: 'all .5s linear 3s',
          '&:hover': { color: '#222', transition: 'none' },
        }}
      >
        {value}
      </div>
    )
  }
  // [...]
/>
@arunghosh
Copy link
Owner

@DTrejo Thank you.

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