import * as React from "react"; import * as System from "~/components/system"; import * as Constants from "~/common/constants"; import { css } from "@emotion/react"; import SystemPage from "~/components/system/SystemPage"; import ViewSourceLink from "~/components/system/ViewSourceLink"; import CodeBlock from "~/components/system/CodeBlock"; const STYLES_WRAPPER = css` height: 200px; width: 320px; `; const STYLES_LAYER = css` position: absolute; width: 100%; height: 100%; top: 0%; left: 0%; background-repeat: no-repeat; background-position: center; background-color: transparent; background-size: cover; transition: all 0.1s ease-out; overflow: hidden; border-radius: 8px; `; export default class SystemPageCard3D extends React.Component { render() { return ( 3D Card

The 3D Card Component is a fluid card component used to display present any object in 3d. It is a port of the vanilla JS pen{" "} of Robin Delaporte to React. The code is used under the MIT license.


Imports

Import 3D Card Component.

{`import { Card3D } from 'slate-react-system';`}

Usage

Declare the 3D Card Component.
{`/* Custom styles for the container to set width and height */
/* Any object with custom styles goes in here */
`}

Output

); } }