1.0.9 • Published 2 years ago

fancy-cards v1.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

description

fancy-cards exports a React Component. It renders its children with an overlay. The overlay is hiding on hover. The transition effect is based on cursor position.

installation

npm install fancy-cards

code example

function App() {
  return (
      <FancyCard
        style={{
          background: '#77c98d',
          minWidth: 150,
          padding: 16,
        }}
        overlay={
          <div 
            style={{ 
              background: 'rgba(255,255,255,.95)', 
              padding: 16 
            }}
          >
            VISIBLE ON HOVER
          </div>
        }
      >

        ALWAYS VISIBLE

      </FancyCard>
  );
}

example of FancyCard usage

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago