Skip to content

Iphone Rise

Good for a hero section like this:

Props

PropDatatypePossible Values
animateBooltrue, false

Notes

  1. You may have to edit the font styling, padding, and margin due to your sites existing stylesheets.

Code

iphone_rise.jsx
import React, { useState, useEffect } from 'react';
import './iphone_rise.css';
const IphoneRise = ({
animate // <-- trigger this to true to animate
}) => {
return (
<div className="iphone_rise">
<div className="container">
<div className={`iphone_container ${animate ? 'animate' : ''}`}>
<img className="iphone" src="/assets/iphone_rise/iphone.png" />
<img className="screen" src="/assets/iphone_rise/screen.png" />
</div>
<div className="radial-gradient"></div>
</div>
</div>
);
};
export { IphoneRise };