![TS Wallpaper.tsx X src > TS Wallpaperttsx > default
amport Keact, { useState trom react (gzippea: 3.3K) import { createwatchCompilerHost } from 'typescript';
import { Images } from ; import { WallpaperProps } from ; import style from './wWallpaper.module.scss'
const Wallpaper: React = (props) { const [currentImage, setImage] = useState(@);
window. setInterval(
+ 1) % Images.length), props. time
return (
<div
<img currentImage]}
[current
Image
<img style.fadingImage] .join("
</div>
32 export default Wallpapers
TS Apptsx @
src Components > TS Apptsx >
render() { return (
<Wallpaper
export default any)
TS Constants.ts
src > Utils > TS Constantsts > export const Images = [
"You",
~can't,
"Just",
"Screenshot",
"Component,
"and",
"use",
"It",
"AS",
"Wallpaper...",
TS Interfaces.ts
src > Utils > TS Interfaces.ts > ReduxState > earthPos
export interface WallpaperProps { wallpapers?: string[]; time: number;
Wallpaper.module.scss X
stc > Wallpaper.module.scss > .wallpaperlmage
@import
-slideshow { position: relatives height: 100%; width: 100%;
-wallpaperimage ff] position: absolute; top: left: 5@%} max-height: max-width: transition: opacity linear; transform:
&.fadingImage { opacity:](https://img.ifunny.co/images/61293ad8827efc5f1b9f67b1a5fc343fbd03b0fa81fcd2d5f6a869a263557c43_1.jpg)
By using iFunny you agree to our Privacy policy. We and our partners operate globally and use cookies, including for analytics.
iFunny plug-in will teach your phone to smile
get on the iFunny app to roast them
For a list of the categories of personal information that we collect from you and how we use that information, please review iFunny’s privacy policy