import * as React from 'react'; import styled from 'styled-components'; import {View} from '../src'; const data: Item[] = require('./data.json'); interface Item { id: string; first_name: string; last_name: string; email: string; gender: string; ip_address: string; img: string; } interface Props { active: boolean; } const StyledItem = styled.ul` width: 200px; border: 1px solid green; height: 1000px; opacity: ${(props: Props) => props.active ? 1 : .2}; transition: all .8s ease; perspective: 1000px; .content { background-color: #d92b2f; transform: ${(props: Props) => props.active ? `rotateY(0)` : `rotateY(70deg)`}; transform-origin: left center; width: 200px; height: 500px; transition: all .8s ease; } .name { font-size: 20px; line-height: 40px; } .email { font-size: 18px; line-height: 30px; } `; export class EX01 extends React.Component<{}, {}> { render() { return (