Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

126
Views
Sliding card from left side when clicked on button in react

In image 1, when the user click on "Apply Coupen", than a window slides from left just above the webpage(see image 2). How to achieve this? And in image 2, we can see a blue transparent color on the webpage just adjacent to the window which slides from left. How to do achieve it?

Image 1 Image 1

Image 2 Image 2

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

See it. Click here and see demo code If this helps you, please mark as an answer;

import { useState } from 'react'
import "./styles.css";
import Sidebar from './component/sidebar'


export default function App() {
  const [toggle, setToggle] = useState(false);

  const handleToggle = () => {
    setToggle(pre => !pre)
  }

  return (
    <div className="App">
      <button onClick={handleToggle} >Click Me</button>
     {toggle && <Sidebar close={() => setToggle(false)} />}
    </div>
  );
}
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!