Menggunakan animasi pembatalan javascript wajah

Komponen modal dapat digunakan sebagai dialog interaktif di atas area konten utama situs web untuk menampilkan pemberitahuan dan mengumpulkan informasi menggunakan elemen formulir dari pengguna situs web Anda

Mulailah dengan berbagai ukuran, warna, dan gaya yang dibuat dengan kelas utilitas dari Tailwind CSS dan komponen dari Flowbite

Untuk membuat modal dengan Tailwind CSS, Anda hanya perlu menambahkan



  Toggle modal



Static modal

With less than a month to go before the European Union enacts new consumer privacy laws for its citizens, companies around the world are updating their terms of service agreements to comply.

The European Union’s General Data Protection Regulation (G.D.P.R.) goes into effect on May 25 and is meant to ensure a common set of data rights in the European Union. It requires organizations to notify users as soon as possible of high-risk data breaches that could personally affect them.

I accept Decline

4 atribut data dengan


  Toggle modal



Static modal

With less than a month to go before the European Union enacts new consumer privacy laws for its citizens, companies around the world are updating their terms of service agreements to comply.

The European Union’s General Data Protection Regulation (G.D.P.R.) goes into effect on May 25 and is meant to ensure a common set of data rights in the European Union. It requires organizations to notify users as soon as possible of high-risk data breaches that could personally affect them.

I accept Decline

5 adalah ID dari modal yang Anda targetkan

Jika Anda ingin mengubah visibilitas, menampilkan, atau menyembunyikan modal, Anda dapat menggunakan atribut data berikut di mana nilainya adalah ID unik dari komponen modal

  • 
    
      Toggle modal
    
    
    
    

    Static modal

    With less than a month to go before the European Union enacts new consumer privacy laws for its citizens, companies around the world are updating their terms of service agreements to comply.

    The European Union’s General Data Protection Regulation (G.D.P.R.) goes into effect on May 25 and is meant to ensure a common set of data rights in the European Union. It requires organizations to notify users as soon as possible of high-risk data breaches that could personally affect them.

    I accept Decline

    6 - alihkan modal
  • 
    
      Toggle modal
    
    
    
    

    Static modal

    With less than a month to go before the European Union enacts new consumer privacy laws for its citizens, companies around the world are updating their terms of service agreements to comply.

    The European Union’s General Data Protection Regulation (G.D.P.R.) goes into effect on May 25 and is meant to ensure a common set of data rights in the European Union. It requires organizations to notify users as soon as possible of high-risk data breaches that could personally affect them.

    I accept Decline

    7 - tunjukkan modalnya
  • 
    
      Toggle modal
    
    
    
    

    Static modal

    With less than a month to go before the European Union enacts new consumer privacy laws for its citizens, companies around the world are updating their terms of service agreements to comply.

    The European Union’s General Data Protection Regulation (G.D.P.R.) goes into effect on May 25 and is meant to ensure a common set of data rights in the European Union. It requires organizations to notify users as soon as possible of high-risk data breaches that could personally affect them.

    I accept Decline

    8 - tutup modal

Alihkan tampilan penuh Alihkan tampilan tablet Alihkan tampilan seluler

Salinan

beralih modal

Ketentuan Layanan

Tutup modal

Dengan waktu kurang dari sebulan sebelum Uni Eropa memberlakukan undang-undang privasi konsumen baru untuk warganya, perusahaan di seluruh dunia memperbarui persyaratan perjanjian layanan mereka untuk mematuhi

Peraturan Perlindungan Data Umum Uni Eropa (G. D. P. R. ) mulai berlaku pada tanggal 25 Mei dan dimaksudkan untuk memastikan seperangkat hak data bersama di Uni Eropa. Ini mengharuskan organisasi untuk memberi tahu pengguna sesegera mungkin tentang pelanggaran data berisiko tinggi yang dapat memengaruhi mereka secara pribadi



  Toggle modal



Terms of Service

Close modal

With less than a month to go before the European Union enacts new consumer privacy laws for its citizens, companies around the world are updating their terms of service agreements to comply.

The European Union’s General Data Protection Regulation (G.D.P.R.) goes into effect on May 25 and is meant to ensure a common set of data rights in the European Union. It requires organizations to notify users as soon as possible of high-risk data breaches that could personally affect them.

I accept Decline

Luaskan kode

Gunakan atribut data



  Toggle modal



Static modal

With less than a month to go before the European Union enacts new consumer privacy laws for its citizens, companies around the world are updating their terms of service agreements to comply.

The European Union’s General Data Protection Regulation (G.D.P.R.) goes into effect on May 25 and is meant to ensure a common set of data rights in the European Union. It requires organizations to notify users as soon as possible of high-risk data breaches that could personally affect them.

I accept Decline

_9 untuk mencegah modal menutup saat mengklik di luarnya. Ini dapat digunakan dengan situasi di mana Anda ingin memaksa pengguna untuk memilih opsi seperti pemberitahuan cookie atau saat mengikuti survei

Alihkan tampilan penuh Alihkan tampilan tablet Alihkan tampilan seluler

Salinan

beralih modal

Dengan waktu kurang dari sebulan sebelum Uni Eropa memberlakukan undang-undang privasi konsumen baru untuk warganya, perusahaan di seluruh dunia memperbarui persyaratan perjanjian layanan mereka untuk mematuhi

Peraturan Perlindungan Data Umum Uni Eropa (G. D. P. R. ) mulai berlaku pada tanggal 25 Mei dan dimaksudkan untuk memastikan seperangkat hak data bersama di Uni Eropa. Ini mengharuskan organisasi untuk memberi tahu pengguna sesegera mungkin tentang pelanggaran data berisiko tinggi yang dapat memengaruhi mereka secara pribadi



  Toggle modal



Static modal

With less than a month to go before the European Union enacts new consumer privacy laws for its citizens, companies around the world are updating their terms of service agreements to comply.

The European Union’s General Data Protection Regulation (G.D.P.R.) goes into effect on May 25 and is meant to ensure a common set of data rights in the European Union. It requires organizations to notify users as soon as possible of high-risk data breaches that could personally affect them.

I accept Decline

Luaskan kode

munculan modal

Anda dapat menggunakan contoh modal ini untuk menampilkan dialog keputusan pop-up kepada pengguna Anda terutama saat menghapus item dan memastikan apakah pengguna benar-benar ingin melakukannya dengan konfirmasi ganda

Alihkan tampilan penuh Alihkan tampilan tablet Alihkan tampilan seluler


  Toggle modal


Close modal

Are you sure you want to delete this product?

Yes, I'm sure No, cancel

_

Luaskan kode

elemen bentuk

Gunakan contoh modal ini dengan elemen input formulir untuk menerima informasi dari pengguna Anda dengan keuntungan tidak harus menautkan ke halaman lain tetapi mempertahankan pengguna di halaman yang sedang aktif. Contoh yang bagus adalah login atau formulir pendaftaran

Alihkan tampilan penuh Alihkan tampilan tablet Alihkan tampilan seluler



  Toggle modal



Close modal

Sign in to our platform

Your email

Your password

Remember me

Lost Password?

Login to your account

Not registered? Create account

_

Luaskan kode

Dompet kripto

Gunakan komponen modal web3 ini untuk menampilkan opsi koneksi dompet kripto seperti MetaMask atau WalletConnect saat membuat situs web berdasarkan autentikasi dan koleksi NFT

Alihkan tampilan penuh Alihkan tampilan tablet Alihkan tampilan seluler

Salinan

Hubungkan dompet

Tutup modal

Terhubung dengan salah satu penyedia dompet kami yang tersedia atau buat yang baru


  
  Connect wallet



Close modal

Connect wallet

Connect with one of our available wallet providers or create a new one.

Why do I need to connect with my wallet?

Luaskan kode

ukuran

Anda dapat menggunakan empat opsi ukuran modal yang berbeda mulai dari kecil hingga ekstra besar, namun perlu diingat bahwa lebar modal ini akan tetap sama saat menjelajah di perangkat yang lebih kecil

Alihkan tampilan penuh Alihkan tampilan tablet Alihkan tampilan seluler

Salinan

Modal kecil Modal default Modal besar Modal ekstra besar

Dengan waktu kurang dari sebulan sebelum Uni Eropa memberlakukan undang-undang privasi konsumen baru untuk warganya, perusahaan di seluruh dunia memperbarui persyaratan perjanjian layanan mereka untuk mematuhi

Peraturan Perlindungan Data Umum Uni Eropa (G. D. P. R. ) mulai berlaku pada tanggal 25 Mei dan dimaksudkan untuk memastikan seperangkat hak data bersama di Uni Eropa. Ini mengharuskan organisasi untuk memberi tahu pengguna sesegera mungkin tentang pelanggaran data berisiko tinggi yang dapat memengaruhi mereka secara pribadi

Dengan waktu kurang dari sebulan sebelum Uni Eropa memberlakukan undang-undang privasi konsumen baru untuk warganya, perusahaan di seluruh dunia memperbarui persyaratan perjanjian layanan mereka untuk mematuhi

Peraturan Perlindungan Data Umum Uni Eropa (G. D. P. R. ) mulai berlaku pada tanggal 25 Mei dan dimaksudkan untuk memastikan seperangkat hak data bersama di Uni Eropa. Ini mengharuskan organisasi untuk memberi tahu pengguna sesegera mungkin tentang pelanggaran data berisiko tinggi yang dapat memengaruhi mereka secara pribadi

Dengan waktu kurang dari sebulan sebelum Uni Eropa memberlakukan undang-undang privasi konsumen baru untuk warganya, perusahaan di seluruh dunia memperbarui persyaratan perjanjian layanan mereka untuk mematuhi

Peraturan Perlindungan Data Umum Uni Eropa (G. D. P. R. ) mulai berlaku pada tanggal 25 Mei dan dimaksudkan untuk memastikan seperangkat hak data bersama di Uni Eropa. Ini mengharuskan organisasi untuk memberi tahu pengguna sesegera mungkin tentang pelanggaran data berisiko tinggi yang dapat memengaruhi mereka secara pribadi

________sebelas_______

Luaskan kode

penempatan

Gunakan atribut data


  Toggle modal


Close modal

Are you sure you want to delete this product?

Yes, I'm sure No, cancel

_0 pada elemen modal untuk mengatur posisi relatif terhadap badan dokumen berdasarkan nilai yang tersedia dari

  Toggle modal


Close modal

Are you sure you want to delete this product?

Yes, I'm sure No, cancel

1 (mis.

  Toggle modal


Close modal

Are you sure you want to delete this product?

Yes, I'm sure No, cancel

2 atau

  Toggle modal


Close modal

Are you sure you want to delete this product?

Yes, I'm sure No, cancel

3)

Posisi default adalah tengah halaman

Alihkan tampilan penuh Alihkan tampilan tablet Alihkan tampilan seluler

Salinan

Kiri atas Kanan atas Kiri bawah Kanan bawah

Tutup modal

Dengan waktu kurang dari sebulan sebelum Uni Eropa memberlakukan undang-undang privasi konsumen baru untuk warganya, perusahaan di seluruh dunia memperbarui persyaratan perjanjian layanan mereka untuk mematuhi

Peraturan Perlindungan Data Umum Uni Eropa (G. D. P. R. ) mulai berlaku pada tanggal 25 Mei dan dimaksudkan untuk memastikan seperangkat hak data bersama di Uni Eropa. Ini mengharuskan organisasi untuk memberi tahu pengguna sesegera mungkin tentang pelanggaran data berisiko tinggi yang dapat memengaruhi mereka secara pribadi

Tutup modal

Dengan waktu kurang dari sebulan sebelum Uni Eropa memberlakukan undang-undang privasi konsumen baru untuk warganya, perusahaan di seluruh dunia memperbarui persyaratan perjanjian layanan mereka untuk mematuhi

Peraturan Perlindungan Data Umum Uni Eropa (G. D. P. R. ) mulai berlaku pada tanggal 25 Mei dan dimaksudkan untuk memastikan seperangkat hak data bersama di Uni Eropa. Ini mengharuskan organisasi untuk memberi tahu pengguna sesegera mungkin tentang pelanggaran data berisiko tinggi yang dapat memengaruhi mereka secara pribadi

Tutup modal

Dengan waktu kurang dari sebulan sebelum Uni Eropa memberlakukan undang-undang privasi konsumen baru untuk warganya, perusahaan di seluruh dunia memperbarui persyaratan perjanjian layanan mereka untuk mematuhi

Peraturan Perlindungan Data Umum Uni Eropa (G. D. P. R. ) mulai berlaku pada tanggal 25 Mei dan dimaksudkan untuk memastikan seperangkat hak data bersama di Uni Eropa. Ini mengharuskan organisasi untuk memberi tahu pengguna sesegera mungkin tentang pelanggaran data berisiko tinggi yang dapat memengaruhi mereka secara pribadi

Tutup modal

Dengan waktu kurang dari sebulan sebelum Uni Eropa memberlakukan undang-undang privasi konsumen baru untuk warganya, perusahaan di seluruh dunia memperbarui persyaratan perjanjian layanan mereka untuk mematuhi

Peraturan Perlindungan Data Umum Uni Eropa (G. D. P. R. ) mulai berlaku pada tanggal 25 Mei dan dimaksudkan untuk memastikan seperangkat hak data bersama di Uni Eropa. Ini mengharuskan organisasi untuk memberi tahu pengguna sesegera mungkin tentang pelanggaran data berisiko tinggi yang dapat memengaruhi mereka secara pribadi

Top left Top right Bottom left Bottom right

Top left modal

Close modal

With less than a month to go before the European Union enacts new consumer privacy laws for its citizens, companies around the world are updating their terms of service agreements to comply.

The European Union’s General Data Protection Regulation (G.D.P.R.) goes into effect on May 25 and is meant to ensure a common set of data rights in the European Union. It requires organizations to notify users as soon as possible of high-risk data breaches that could personally affect them.

I accept Decline

Top right modal

Close modal

With less than a month to go before the European Union enacts new consumer privacy laws for its citizens, companies around the world are updating their terms of service agreements to comply.

The European Union’s General Data Protection Regulation (G.D.P.R.) goes into effect on May 25 and is meant to ensure a common set of data rights in the European Union. It requires organizations to notify users as soon as possible of high-risk data breaches that could personally affect them.

I accept Decline

Bottom left modal

Close modal

With less than a month to go before the European Union enacts new consumer privacy laws for its citizens, companies around the world are updating their terms of service agreements to comply.

The European Union’s General Data Protection Regulation (G.D.P.R.) goes into effect on May 25 and is meant to ensure a common set of data rights in the European Union. It requires organizations to notify users as soon as possible of high-risk data breaches that could personally affect them.

I accept Decline

Bottom right modal

Close modal

With less than a month to go before the European Union enacts new consumer privacy laws for its citizens, companies around the world are updating their terms of service agreements to comply.

The European Union’s General Data Protection Regulation (G.D.P.R.) goes into effect on May 25 and is meant to ensure a common set of data rights in the European Union. It requires organizations to notify users as soon as possible of high-risk data breaches that could personally affect them.

I accept Decline

Luaskan kode

perilaku javascript

Kelas Modal dari Flowbite dapat digunakan untuk membuat objek yang akan meluncurkan modal interaktif berdasarkan parameter objek, opsi, dan metode yang Anda pilih untuk diterapkan.

Parameter objek

Inisialisasi objek Modal dengan parameter seperti elemen modal dan objek opsi opsional

ParameterTypeRequiredDescription


  Toggle modal


Close modal

Are you sure you want to delete this product?

Yes, I'm sure No, cancel

4ElementRequiredSet elemen modal utama sebagai objek JavaScript.

  Toggle modal


Close modal

Are you sure you want to delete this product?

Yes, I'm sure No, cancel

5ObjectOptionalGunakan parameter opsi untuk menyetel status default modal, penempatan, dan animasi

Pilihan

Gunakan opsi berikut sebagai parameter kedua untuk objek Modal untuk mengatur posisi modal, kelas khusus untuk elemen backdrop dan fungsi callback

OptionTypeDescription


  Toggle modal


Close modal

Are you sure you want to delete this product?

Yes, I'm sure No, cancel

6StringSetel posisi elemen modal relatif terhadap badan dokumen dengan memilih salah satu nilai dari

  Toggle modal


Close modal

Are you sure you want to delete this product?

Yes, I'm sure No, cancel

7. (misalnya. kiri atas atau kanan bawah)

  Toggle modal


Close modal

Are you sure you want to delete this product?

Yes, I'm sure No, cancel

_8StringPilih antara

  Toggle modal


Close modal

Are you sure you want to delete this product?

Yes, I'm sure No, cancel

9 atau


  Toggle modal



Close modal

Sign in to our platform

Your email

Your password

Remember me

Lost Password?

Login to your account

Not registered? Create account

0 untuk mencegah penutupan modal saat mengklik di luar.


  Toggle modal



Close modal

Sign in to our platform

Your email

Your password

Remember me

Lost Password?

Login to your account

Not registered? Create account

1StringSetel string kelas Tailwind CSS untuk elemen tampilan latar (mis.


  Toggle modal



Close modal

Sign in to our platform

Your email

Your password

Remember me

Lost Password?

Login to your account

Not registered? Create account

_2.


  Toggle modal



Close modal

Sign in to our platform

Your email

Your password

Remember me

Lost Password?

Login to your account

Not registered? Create account

3BooleanSet ke


  Toggle modal



Close modal

Sign in to our platform

Your email

Your password

Remember me

Lost Password?

Login to your account

Not registered? Create account

4 untuk menonaktifkan penutupan modal saat menekan ESC atau mengklik tampilan latar.


  Toggle modal



Close modal

Sign in to our platform

Your email

Your password

Remember me

Lost Password?

Login to your account

Not registered? Create account

5FungsiSetel fungsi panggilan balik saat modal telah disembunyikan.


  Toggle modal



Close modal

Sign in to our platform

Your email

Your password

Remember me

Lost Password?

Login to your account

Not registered? Create account

6FunctionMengatur fungsi callback ketika modal telah ditampilkan.


  Toggle modal



Close modal

Sign in to our platform

Your email

Your password

Remember me

Lost Password?

Login to your account

Not registered? Create account

7FunctionMenetapkan fungsi panggilan balik saat visibilitas modal telah dialihkan

metode

Gunakan metode dari objek Modal untuk menampilkan, menyembunyikan, dan mengalihkan visibilitas langsung dari JavaScript

MethodDescription



  Toggle modal



Close modal

Sign in to our platform

Your email

Your password

Remember me

Lost Password?

Login to your account

Not registered? Create account

_8Gunakan fungsi sakelar pada objek Modal untuk mengalihkan visibilitas elemen modal.


  Toggle modal



Close modal

Sign in to our platform

Your email

Your password

Remember me

Lost Password?

Login to your account

Not registered? Create account

9Gunakan fungsi show pada objek Modal untuk menampilkan elemen modal.

  
  Connect wallet



Close modal

Connect wallet

Connect with one of our available wallet providers or create a new one.

Why do I need to connect with my wallet?

0Gunakan fungsi sembunyikan pada objek Modal untuk menyembunyikan elemen modal.

  
  Connect wallet



Close modal

Connect wallet

Connect with one of our available wallet providers or create a new one.

Why do I need to connect with my wallet?

1Gunakan fungsi ini untuk memeriksa apakah modal disembunyikan.

  
  Connect wallet



Close modal

Connect wallet

Connect with one of our available wallet providers or create a new one.

Why do I need to connect with my wallet?

2Gunakan fungsi ini untuk memeriksa apakah modal terlihat

Contoh

Lihat contoh JavaScript berikut untuk mempelajari cara menginisialisasi, menyetel opsi, dan menggunakan metode untuk objek Modal

Pertama-tama, buat objek elemen JavaScript baru untuk parameter pertama objek Modal dan objek opsi lainnya untuk mengatur penempatan, gaya tampilan latar, dan fungsi panggilan balik

// set the modal menu element
const $targetEl = document.getElementById('modalEl');

// options with default values
const options = {
  placement: 'bottom-right',
  backdrop: 'dynamic',
  backdropClasses: 'bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-40',
  closable: true,
  onHide: () => {
      console.log('modal is hidden');
  },
  onShow: () => {
      console.log('modal is shown');
  },
  onToggle: () => {
      console.log('modal has been toggled');
  }
};

Buat objek Modal baru berdasarkan opsi di atas

import { Modal } from 'flowbite';

/*
* $targetEl: required
* options: optional
*/
const modal = new Modal($targetEl, options);

Gunakan metode


  
  Connect wallet



Close modal

Connect wallet

Connect with one of our available wallet providers or create a new one.

Why do I need to connect with my wallet?

3 dan

  
  Connect wallet



Close modal

Connect wallet

Connect with one of our available wallet providers or create a new one.

Why do I need to connect with my wallet?

4 untuk menampilkan dan menyembunyikan komponen modal langsung dari JavaScript

// show the modal
modal.show();

// hide the modal
modal.hide();

Gunakan metode


  
  Connect wallet



Close modal

Connect wallet

Connect with one of our available wallet providers or create a new one.

Why do I need to connect with my wallet?

_5 untuk mengaktifkan visibilitas modal



  Toggle modal



Static modal

With less than a month to go before the European Union enacts new consumer privacy laws for its citizens, companies around the world are updating their terms of service agreements to comply.

The European Union’s General Data Protection Regulation (G.D.P.R.) goes into effect on May 25 and is meant to ensure a common set of data rights in the European Union. It requires organizations to notify users as soon as possible of high-risk data breaches that could personally affect them.

I accept Decline

0

Gunakan metode


  
  Connect wallet



Close modal

Connect wallet

Connect with one of our available wallet providers or create a new one.

Why do I need to connect with my wallet?

_6 atau

  
  Connect wallet



Close modal

Connect wallet

Connect with one of our available wallet providers or create a new one.

Why do I need to connect with my wallet?

7 untuk memeriksa apakah modal terlihat atau tidak



  Toggle modal



Static modal

With less than a month to go before the European Union enacts new consumer privacy laws for its citizens, companies around the world are updating their terms of service agreements to comply.

The European Union’s General Data Protection Regulation (G.D.P.R.) goes into effect on May 25 and is meant to ensure a common set of data rights in the European Union. It requires organizations to notify users as soon as possible of high-risk data breaches that could personally affect them.

I accept Decline

_1

markup HTML

Gunakan kode HTML berikut untuk contoh JavaScript di atas



  Toggle modal



Static modal

With less than a month to go before the European Union enacts new consumer privacy laws for its citizens, companies around the world are updating their terms of service agreements to comply.

The European Union’s General Data Protection Regulation (G.D.P.R.) goes into effect on May 25 and is meant to ensure a common set of data rights in the European Union. It requires organizations to notify users as soon as possible of high-risk data breaches that could personally affect them.

I accept Decline

_2

naskah

Jika Anda menggunakan konfigurasi TypeScript dari Flowbite maka Anda dapat mengimpor tipe untuk kelas Modal, parameter, dan opsinya