މައިގަނޑު ކޮންޓެންޓަށް ސްކިޕް ކުރާށެވެ ޑޮކްސް ނެވިގޭޝަނަށް ސްކިޕް ކުރާށެވެ
in English

ކެރޮސެލް އެވެ

ކެރޮސެލް ފަދަ އުފެއްދުންތައް - ތަސްވީރު ނުވަތަ ލިޔުމުގެ ސްލައިޑްތައް - ސައިކަލް ކުރުމަށް ބޭނުންކުރާ ސްލައިޑްޝޯ ކޮމްޕޮނެންޓެކެވެ.

އެކަން ކުރާ ގޮތް

މި ކެރޮސެލް އަކީ ސީއެސްއެސް 3ޑީ ޓްރާންސްފޯމްތަކާއި ޖާވާސްކްރިޕްޓްގެ ތަންކޮޅެއް ބޭނުންކޮށްގެން ހަދާފައިވާ ސިލްސިލާ ކޮންޓެންޓެއްގެ ތެރެއިން ސައިކަލް ދުއްވުމަށް ސްލައިޑްޝޯއެކެވެ. އެއީ ސިލްސިލާ ތަސްވީރުތަކެއް، ލިޔުމެއް، ނުވަތަ ކަސްޓަމް މާކަޕްތަކަކާއެކު މަސައްކަތް ކުރާ އެއްޗެކެވެ. އަދި ކުރީގެ/ކުރިއަށް އޮތް ކޮންޓްރޯލްތަކާއި އިންޑިކޭޓަރތަކަށް ސަޕޯޓް ދިނުން ހިމެނެއެވެ.

ޕޭޖް ވިޒިބިލިޓީ އެޕީއައި އަށް ސަޕޯޓްކުރާ ބްރައުޒާތަކުގައި ، ވެބްޕޭޖް ޔޫޒަރަށް ނުފެންނަ ވަގުތުތަކުގައި (ބްރައުޒާ ޓެބް އިންއެކްޓިވް ވުމުން، ބްރައުޒާ ވިންޑޯ މިނިމައިޒް ވުމުން ފަދަ) ކެރޮސެލް ސްލައިޑް ނުވާނެއެވެ.

މި ކޮމްޕޮނެންޓްގެ އެނިމޭޝަން އިފެކްޓް ބިނާވެފައިވަނީ prefers-reduced-motionމީޑިއާ ކިއުއަރީގެ މައްޗަށެވެ. އަޅުގަނޑުމެންގެ އެކްސެސިބިލިޓީ ޑޮކިއުމަންޓޭޝަންގެ ރިޑޫސްޑް މޮޝަން ބައި ބައްލަވާށެވެ .

ނެސްޓްޑް ކެރޮސެލްތަކަށް ސަޕޯޓް ނުކުރާ ކަމާއި، އަދި ކެރޮސެލްތަކަކީ އާންމުކޮށް އެކްސެސިބިލިޓީ ސްޓޭންޑަރޑްތަކަށް ތަބާވާ އެއްޗެއް ނޫންކަން ސަމާލުކަން ދެއްވާށެވެ.

މިސާލު

ކެރޮސެލްތަކުން އޮޓޮމެޓިކުން ސްލައިޑް ޑިމައިންސްތައް ނޯމަލައިޒް ނުކުރެއެވެ. އެގޮތުން، ކޮންޓެންޓް އެކަށީގެންވާ ގޮތެއްގައި ސައިޒް ކުރުމަށް އިތުރު ޔުޓިލިޓީސް ނުވަތަ ކަސްޓަމް ސްޓައިލްތައް ބޭނުން ކުރަން ޖެހިދާނެއެވެ. ކެރޮސެލްތަކުން ކުރީގެ/ކުރިއަށް އޮތް ކޮންޓްރޯލްތަކާއި އިންޑިކޭޓަރތަކަށް ސަޕޯޓްކުރާއިރު، އެއީ ސާފުކޮށް ބޭނުންވާ އެއްޗެއް ނޫނެވެ. އެޑްކޮށް ކަސްޓަމައިޒް ކުރާނީ ތިމާއަށް ފެންނަ ގޮތަކަށް.

އެއިން އެއް ސްލައިޑަކަށް .activeކްލާސް އިތުރުކުރަން ޖެހޭ ނޫނީ ކެރޮސެލް ނުފެންނާނެއެވެ. އަދި ޚާއްޞަކޮށް އެއް ޞަފްޙާއެއްގައި އެތައް ކެރޮސެލްއެއް ބޭނުންކުރާނަމަ އިޚްތިޔާރީ ކޮންޓްރޯލްތަކަށް ޔުނިކް idއޮން ދަ ސެޓް ކުރުން ޔަގީން ކުރައްވާށެވެ. .carouselކޮންޓްރޯލް އަދި އިންޑިކޭޓަރ އެލިމެންޓްތަކުގައި އެލިމެންޓާ އެއްގޮތްވާ އެޓްރިބިއުޓެއް data-bs-target(ނުވަތަ ލިންކްތަކަށް) ހުންނަންވާނެއެވެ .hrefid.carousel

ސްލައިޑްސް އެކަނި

މިއޮތީ ހަމައެކަނި ސްލައިޑްތަކާއެކު ކެރޮސެލްއެކެވެ. ބްރައުޒާ ޑިފޯލްޓް އިމޭޖް އެލައިންމަންޓް ހުއްޓުވުމަށްޓަކައި ކެރޮސެލް އިމޭޖްތަކުގައި .d-blockއަދި ހުރިކަން ފާހަގަކުރައްވާށެވެ ..w-100

<div id="carouselExampleSlidesOnly" class="carousel slide" data-bs-ride="carousel">
  <div class="carousel-inner">
    <div class="carousel-item active">
      <img src="..." class="d-block w-100" alt="...">
    </div>
    <div class="carousel-item">
      <img src="..." class="d-block w-100" alt="...">
    </div>
    <div class="carousel-item">
      <img src="..." class="d-block w-100" alt="...">
    </div>
  </div>
</div>

ކޮންޓްރޯލްތަކާއެކު

ކުރީގެ އަދި ދެން އޮތް ކޮންޓްރޯލްތަކުގައި އިތުރުކުރުން. އަޅުގަނޑުމެން ލަފާދެނީ އެލިމެންޓްސް ބޭނުންކުރުމަށެވެ، އެކަމަކު އާއެކު އެލިމެންޓްސް <button>ވެސް ބޭނުންކުރެވިދާނެއެވެ .<a>role="button"

<div id="carouselExampleControls" class="carousel slide" data-bs-ride="carousel">
  <div class="carousel-inner">
    <div class="carousel-item active">
      <img src="..." class="d-block w-100" alt="...">
    </div>
    <div class="carousel-item">
      <img src="..." class="d-block w-100" alt="...">
    </div>
    <div class="carousel-item">
      <img src="..." class="d-block w-100" alt="...">
    </div>
  </div>
  <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleControls" data-bs-slide="prev">
    <span class="carousel-control-prev-icon" aria-hidden="true"></span>
    <span class="visually-hidden">Previous</span>
  </button>
  <button class="carousel-control-next" type="button" data-bs-target="#carouselExampleControls" data-bs-slide="next">
    <span class="carousel-control-next-icon" aria-hidden="true"></span>
    <span class="visually-hidden">Next</span>
  </button>
</div>

އިންޑިކޭޓަރުތަކާއެކު

އަދި ކެރޮސެލްއަށް އިންޑިކޭޓަރުތައް އިތުރުކުރެވިދާނެ، ކޮންޓްރޯލްތަކާ އެކު، ވެސް.

<div id="carouselExampleIndicators" class="carousel slide" data-bs-ride="carousel">
  <div class="carousel-indicators">
    <button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
    <button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="1" aria-label="Slide 2"></button>
    <button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="2" aria-label="Slide 3"></button>
  </div>
  <div class="carousel-inner">
    <div class="carousel-item active">
      <img src="..." class="d-block w-100" alt="...">
    </div>
    <div class="carousel-item">
      <img src="..." class="d-block w-100" alt="...">
    </div>
    <div class="carousel-item">
      <img src="..." class="d-block w-100" alt="...">
    </div>
  </div>
  <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="prev">
    <span class="carousel-control-prev-icon" aria-hidden="true"></span>
    <span class="visually-hidden">Previous</span>
  </button>
  <button class="carousel-control-next" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="next">
    <span class="carousel-control-next-icon" aria-hidden="true"></span>
    <span class="visually-hidden">Next</span>
  </button>
</div>

ކެޕްޝަންތަކާއެކު

.carousel-captionއެއްވެސް އެއްޗެއްގެ ތެރޭގައި ހުންނަ އެލިމެންޓާއެކު ފަސޭހައިން ސްލައިޑްތަކަށް ކެޕްޝަންތައް އިތުރުކުރުން .carousel-item. އެއީ ތިރީގައިވާ ގޮތަށް، އިޚްތިޔާރީ ޑިސްޕްލޭ ޔުޓިލިޓީސް އާއި އެކު، ކުދި ވިއުޕޯޓްތަކުގައި ފަސޭހައިން ފޮރުވޭނެ އެއްޗެހިތަކެކެވެ . އަޅުގަނޑުމެން އެތަކެތި ފުރަތަމަ ފޮރުވަނީ އާއި އެކު .d-noneއަދި އަނބުރާ މެދު ސައިޒުގެ ޑިވައިސްތަކުގައި ގެންނަނީ .d-md-block.

<div id="carouselExampleCaptions" class="carousel slide" data-bs-ride="carousel">
  <div class="carousel-indicators">
    <button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
    <button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="1" aria-label="Slide 2"></button>
    <button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="2" aria-label="Slide 3"></button>
  </div>
  <div class="carousel-inner">
    <div class="carousel-item active">
      <img src="..." class="d-block w-100" alt="...">
      <div class="carousel-caption d-none d-md-block">
        <h5>First slide label</h5>
        <p>Some representative placeholder content for the first slide.</p>
      </div>
    </div>
    <div class="carousel-item">
      <img src="..." class="d-block w-100" alt="...">
      <div class="carousel-caption d-none d-md-block">
        <h5>Second slide label</h5>
        <p>Some representative placeholder content for the second slide.</p>
      </div>
    </div>
    <div class="carousel-item">
      <img src="..." class="d-block w-100" alt="...">
      <div class="carousel-caption d-none d-md-block">
        <h5>Third slide label</h5>
        <p>Some representative placeholder content for the third slide.</p>
      </div>
    </div>
  </div>
  <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide="prev">
    <span class="carousel-control-prev-icon" aria-hidden="true"></span>
    <span class="visually-hidden">Previous</span>
  </button>
  <button class="carousel-control-next" type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide="next">
    <span class="carousel-control-next-icon" aria-hidden="true"></span>
    <span class="visually-hidden">Next</span>
  </button>
</div>

ކްރޮސްފޭޑް އެވެ

.carousel-fadeސްލައިޑްގެ ބަދަލުގައި ފޭޑް ޓްރާންސިޝަން އެއް އެކުލެވޭ ގޮތަށް ސްލައިޑްތައް އެނިމޭޓް ކުރުމަށް ކެރޮސެލް އަށް އެޑް ކޮށްލާށެވެ.

<div id="carouselExampleFade" class="carousel slide carousel-fade" data-bs-ride="carousel">
  <div class="carousel-inner">
    <div class="carousel-item active">
      <img src="..." class="d-block w-100" alt="...">
    </div>
    <div class="carousel-item">
      <img src="..." class="d-block w-100" alt="...">
    </div>
    <div class="carousel-item">
      <img src="..." class="d-block w-100" alt="...">
    </div>
  </div>
  <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleFade" data-bs-slide="prev">
    <span class="carousel-control-prev-icon" aria-hidden="true"></span>
    <span class="visually-hidden">Previous</span>
  </button>
  <button class="carousel-control-next" type="button" data-bs-target="#carouselExampleFade" data-bs-slide="next">
    <span class="carousel-control-next-icon" aria-hidden="true"></span>
    <span class="visually-hidden">Next</span>
  </button>
</div>

ދެން އޮތް އެއްޗަކަށް އޮޓޮމެޓިކުން ސައިކަލް ދުއްވުމާ ދެމެދު ލަސްކުރަންޖެހޭ ވަގުތު ބަދަލުކުރުމަށް data-bs-interval=""a އަށް އިތުރުކުރުން ..carousel-item

<div id="carouselExampleInterval" class="carousel slide" data-bs-ride="carousel">
  <div class="carousel-inner">
    <div class="carousel-item active" data-bs-interval="10000">
      <img src="..." class="d-block w-100" alt="...">
    </div>
    <div class="carousel-item" data-bs-interval="2000">
      <img src="..." class="d-block w-100" alt="...">
    </div>
    <div class="carousel-item">
      <img src="..." class="d-block w-100" alt="...">
    </div>
  </div>
  <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleInterval" data-bs-slide="prev">
    <span class="carousel-control-prev-icon" aria-hidden="true"></span>
    <span class="visually-hidden">Previous</span>
  </button>
  <button class="carousel-control-next" type="button" data-bs-target="#carouselExampleInterval" data-bs-slide="next">
    <span class="carousel-control-next-icon" aria-hidden="true"></span>
    <span class="visually-hidden">Next</span>
  </button>
</div>

ޓަޗް ސްވައިޕިންގ ޑިސެބިލް ކުރާށެވެ

ކެރޮސެލްސް އިން ސްލައިޑްތަކުގެ މެދުގައި ދަތުރުކުރުމަށް ޓަޗްސްކްރީން ޑިވައިސްތަކުގައި ކަނާތް/ވާތް ސްވައިޕް ކުރުމަށް ސަޕޯޓް ކުރެ އެވެ. data-bs-touchމިކަން އެޓްރިބިއުޓް ބޭނުންކޮށްގެން ޑިސެބިލް ކުރެވިދާނެއެވެ . ތިރީގައިވާ މިސާލުގައި ވެސް data-bs-rideއެޓްރިބިއުޓް data-bs-interval="false"ހިމަނާފައި ނުވާތީ އޮޓޯޕްލޭ ނުކުރެވެއެވެ.

<div id="carouselExampleControlsNoTouching" class="carousel slide" data-bs-touch="false" data-bs-interval="false">
  <div class="carousel-inner">
    <div class="carousel-item active">
      <img src="..." class="d-block w-100" alt="...">
    </div>
    <div class="carousel-item">
      <img src="..." class="d-block w-100" alt="...">
    </div>
    <div class="carousel-item">
      <img src="..." class="d-block w-100" alt="...">
    </div>
  </div>
  <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleControlsNoTouching" data-bs-slide="prev">
    <span class="carousel-control-prev-icon" aria-hidden="true"></span>
    <span class="visually-hidden">Previous</span>
  </button>
  <button class="carousel-control-next" type="button" data-bs-target="#carouselExampleControlsNoTouching" data-bs-slide="next">
    <span class="carousel-control-next-icon" aria-hidden="true"></span>
    <span class="visually-hidden">Next</span>
  </button>
</div>

ޑާކް ވެރިއަންޓެވެ

.carousel-darkއަނދިރި ކޮންޓްރޯލްތަކާއި ، .carouselއިންޑިކޭޓަރތަކާއި، ކެޕްޝަންތަކަށް އިތުރުކޮށްލާށެވެ . ކޮންޓްރޯލްތައް ވަނީ filterސީއެސްއެސް ޕްރޮޕަޓީއާއެކު އެމީހުންގެ ޑިފޯލްޓް ވައިޓް ފިލް އިން އިންވާޓްކޮށްފައެވެ. ކެޕްޝަންތަކާއި ކޮންޓްރޯލްތަކުގައި އިތުރު ސާސް ވެރިއޭބަލްތައް ހުންނައިރު އެއީ އަދި ކަސްޓަމައިޒް ކުރާ colorއެއްޗެކެވެ background-color.

<div id="carouselExampleDark" class="carousel carousel-dark slide" data-bs-ride="carousel">
  <div class="carousel-indicators">
    <button type="button" data-bs-target="#carouselExampleDark" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
    <button type="button" data-bs-target="#carouselExampleDark" data-bs-slide-to="1" aria-label="Slide 2"></button>
    <button type="button" data-bs-target="#carouselExampleDark" data-bs-slide-to="2" aria-label="Slide 3"></button>
  </div>
  <div class="carousel-inner">
    <div class="carousel-item active" data-bs-interval="10000">
      <img src="..." class="d-block w-100" alt="...">
      <div class="carousel-caption d-none d-md-block">
        <h5>First slide label</h5>
        <p>Some representative placeholder content for the first slide.</p>
      </div>
    </div>
    <div class="carousel-item" data-bs-interval="2000">
      <img src="..." class="d-block w-100" alt="...">
      <div class="carousel-caption d-none d-md-block">
        <h5>Second slide label</h5>
        <p>Some representative placeholder content for the second slide.</p>
      </div>
    </div>
    <div class="carousel-item">
      <img src="..." class="d-block w-100" alt="...">
      <div class="carousel-caption d-none d-md-block">
        <h5>Third slide label</h5>
        <p>Some representative placeholder content for the third slide.</p>
      </div>
    </div>
  </div>
  <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleDark" data-bs-slide="prev">
    <span class="carousel-control-prev-icon" aria-hidden="true"></span>
    <span class="visually-hidden">Previous</span>
  </button>
  <button class="carousel-control-next" type="button" data-bs-target="#carouselExampleDark" data-bs-slide="next">
    <span class="carousel-control-next-icon" aria-hidden="true"></span>
    <span class="visually-hidden">Next</span>
  </button>
</div>

ކަސްޓަމް ޓްރާންސިޝަން

ކޮމްޕައިލް ކުރުމުގެ ކުރިން ސާސް ވެރިއޭބަލް އިން ނުވަތަ ކޮމްޕައިލް ކޮށްފައިވާ ސީއެސްއެސް ބޭނުންކުރާނަމަ ކަސްޓަމް ސްޓައިލްސް .carousel-itemއިން ބަދަލުކުރެވޭނީ ގެ ޓްރާންސިޝަން މުއްދަތެވެ . $carousel-transition-durationއެތައް ޓްރާންސިޝަންއެއް ތަންފީޒުކުރާނަމަ، ފުރަތަމަ ޓްރާންސްފޯމް ޓްރާންސިޝަން ކަނޑައެޅިފައިވާކަން ޔަޤީންކުރަންވާނެއެވެ (އެބަހީ transition: transform 2s ease, opacity .5s ease-out).

ސާސް އެވެ

ވެރިއޭބަލްސް އެވެ

$carousel-control-color:             $white;
$carousel-control-width:             15%;
$carousel-control-opacity:           .5;
$carousel-control-hover-opacity:     .9;
$carousel-control-transition:        opacity .15s ease;

$carousel-indicator-width:           30px;
$carousel-indicator-height:          3px;
$carousel-indicator-hit-area-height: 10px;
$carousel-indicator-spacer:          3px;
$carousel-indicator-opacity:         .5;
$carousel-indicator-active-bg:       $white;
$carousel-indicator-active-opacity:  1;
$carousel-indicator-transition:      opacity .6s ease;

$carousel-caption-width:             70%;
$carousel-caption-color:             $white;
$carousel-caption-padding-y:         1.25rem;
$carousel-caption-spacer:            1.25rem;

$carousel-control-icon-width:        2rem;

$carousel-control-prev-icon-bg:      url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$carousel-control-color}'><path d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/></svg>");
$carousel-control-next-icon-bg:      url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$carousel-control-color}'><path d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/></svg>");

$carousel-transition-duration:       .6s;
$carousel-transition:                transform $carousel-transition-duration ease-in-out; // Define transform transition first if using multiple transitions (e.g., `transform 2s ease, opacity .5s ease-out`)

$carousel-dark-indicator-active-bg:  $black;
$carousel-dark-caption-color:        $black;
$carousel-dark-control-icon-filter:  invert(1) grayscale(100);

ބޭނުން ކުރުން

ޑޭޓާ އެޓްރިބިއުޓްސް މެދުވެރިކޮށް

ކެރޮސެލްގެ މަޤާމު ފަސޭހައިން ކޮންޓްރޯލް ކުރުމަށް ޑޭޓާ އެޓްރިބިއުޓްސް ބޭނުން ކުރާށެވެ. data-bs-slideކީވޯޑްތައް ބަލައިގަންނަ prevނުވަތަ next, މިއީ މިހާރު ހުރި މަޤާމަށް ނިސްބަތްކޮށް ސްލައިޑްގެ މަޤާމު ބަދަލުކޮށްދޭ ކަމެކެވެ. ނުވަތަ، data-bs-slide-toކެރޮސެލް އަށް ރޯ ސްލައިޑް އިންޑެކްސްއެއް ފޮނުވުމަށް ބޭނުންކުރާށެވެ data-bs-slide-to="2"، މިއީ ސްލައިޑްގެ މަޤާމު , އިން ފެށޭ ވަކި އިންޑެކްސްއަކަށް ބަދަލުކޮށްދޭ އެއްޗެކެވެ 0.

މި data-bs-ride="carousel"އެޓްރިބިއުޓް ބޭނުންކުރަނީ ޕޭޖް ލޯޑް ކުރާއިރު ފެށިގެން އެނިމޭޓިންގ ގެ ގޮތުގައި ކެރޮސެލް އެއް ފާހަގަކުރުމަށެވެ. ކެރޮސެލް އިނިޝިއަލައިޒް ކުރުމަށް ބޭނުން data-bs-ride="carousel"ނުކުރާނަމަ އަމިއްލައަށް އިނިޝިއަލައިޒް ކުރަން ޖެހެއެވެ. އެއީ އެއް ކެރޮސެލްއެއްގެ (ރިޑަންޑަންޓް އަދި ކޮންމެހެން ބޭނުން ނުވާ) ސާފު ޖާވާސްކްރިޕްޓް އިނިޝިއަލައިޒޭޝަން އާއި ގުޅިގެން ބޭނުން ނުކުރެވޭނެ އެއްޗެކެވެ.

ޖާވާސްކްރިޕްޓް މެދުވެރިކޮށް

ކެރޮސެލްއަށް މެނުއަލްކޮށް ގުޅާނީ:

var myCarousel = document.querySelector('#myCarousel')
var carousel = new bootstrap.Carousel(myCarousel)

އިޚްތިޔާރުތައް

ޑޭޓާ އެޓްރިބިއުޓްސް ނުވަތަ ޖާވާސްކްރިޕްޓް މެދުވެރިކޮށް އޮޕްޝަންތައް ޕާސް ކުރެވޭނެ އެވެ. ޑޭޓާ އެޓްރިބިއުޓްތަކަށް، data-bs-ގައިވާ ފަދައިން، އޮޕްޝަން ނަން އަށް އިތުރުކުރުން data-bs-interval="".

ނަން ވައްތަރު ޑީފޯލްޓް ތަފްޞީލު
interval ނަންބަރު 5000 އެއްޗެއް އޮޓޮމެޓިކުން ސައިކަލް ދުއްވުމާ ދެމެދު ލަސްކުރަންޖެހޭ ވަގުތު. If false, ކެރޮސެލް އޮޓޮމެޓިކުން ސައިކަލް ނުކުރާނެއެވެ.
keyboard ބޫލިއަން އެވެ true ކީބޯޑް އިވެންޓްތަކަށް ކެރޮސެލް ރިއެކްޓް ކުރަންވީތޯ؟
pause ސްޓްރިންގް | ބޫލިއަން އެވެ 'hover'

އަށް ސެޓްކޮށްފިނަމަ 'hover'ކެރޮސެލް އޮން ސައިކަލް ކުރުން މަޑުޖައްސާލައި ކެރޮސެލް އޮން mouseenterސައިކަލް ކުރުން އަލުން ފަށައެވެ mouseleave. އަށް ސެޓްކޮށްފިނަމަ false، ކެރޮސެލްގެ މައްޗަށް ހޯވަރ ކުރުމުން އެކަން މަޑުޖައްސާކަށް ނުޖެހޭނެއެވެ.

ޓަޗް އެނެބަލް ޑިވައިސްތަކުގައި، އަށް ސެޓް ކުރުމުން ، އޮޓޮމެޓިކުން އަލުން ފެށުމުގެ ކުރިން 'hover'، ސައިކަލް ދުއްވުން touchendދެ އިންޓަވަލަކަށް (ކެރޮސެލް އާއި މުއާމަލާތްކޮށް ނިމުމުން) މަޑުޖައްސާލާނެއެވެ. މިއީ މަތީގައިވާ މައުސްގެ ސުލޫކުގެ އިތުރުން ކަމެއްކަން ފާހަގަކޮށްލެވެއެވެ.

ride ސްޓްރިންގް | ބޫލިއަން އެވެ false ފުރަތަމަ އެއްޗެއް މެނުއަލްކޮށް ސައިކަލް ކުރުމަށްފަހު ކެރޮސެލް އޮޓޯޕްލޭ ކޮށްދެއެވެ. އަށް ސެޓްކޮށްފިނަމަ 'carousel'، ލޯޑްގައި ކެރޮސެލް އޮޓޯޕްލޭ ކޮށްދެއެވެ.
wrap ބޫލިއަން އެވެ true ކެރޮސެލް މެދުނުކެނޑި ސައިކަލް ދުއްވަންވީތޯ ނުވަތަ ހަރު ހުއްޓުމެއް ހުންނަންވީތޯއެވެ.
touch ބޫލިއަން އެވެ true ޓަޗްސްކްރީން ޑިވައިސްތަކުގައި ކަނާތު/ވާތު ސްވައިޕް އިންޓަރެކްޝަންތަކަށް ކެރޮސެލް ސަޕޯޓް ކުރަންވީތޯ؟

ގޮތްތައް

އެސިންކްރޮނަސް މެތޯޑްސް އާއި ޓްރާންސިޝަންސް

ހުރިހާ އެޕީއައި މެތޯޑްތަކަކީ އެސިންކްރޮނަސް މެތޯޑްތަކެއް ކަމުން ޓްރާންސިޝަނެއް ފެށެއެވެ . އެމީހުން އެނބުރި ގުޅާ މީހާއަށް ޓްރާންސިޝަން ފެށުނުހާ އަވަހަކަށް އެކަމަކު ނިމުމުގެ ކުރިން . މީގެ އިތުރުން ޓްރާންސިޝަން ކޮމްޕޮނެންޓެއްގައި މެތޯޑް ކޯލެއް ކުރާނަމަ އަޅާނުލެވޭނެއެވެ .

އިތުރު މަޢުލޫމާތު ހޯދުމަށް އަޅުގަނޑުމެންގެ ޖާވާސްކްރިޕްޓް ޑޮކިއުމަންޓޭޝަން ބައްލަވާށެވެ .

ކެރޮސެލް ކޮންސްޓްރަކްޓަރ އާއި އެކު ކެރޮސެލް އިންސްޓޭންސްއެއް އުފެއްދިދާނެ، މިސާލަކަށް، އިތުރު އޮޕްޝަންތަކާއެކު އިނިޝިއަލައިޒްކޮށް، އައިޓަމްތަކުގެ ތެރެއިން ސައިކަލް ކުރަން ފެށުމަށް:

var myCarousel = document.querySelector('#myCarousel')
var carousel = new bootstrap.Carousel(myCarousel, {
  interval: 2000,
  wrap: false
})
ގޮތް ތަފްޞީލު
cycle ކެރޮސެލް ތަކެތީގެ ތެރެއިން ކަނާތުން ވާތްފަރާތަށް ސައިކަލް ދުއްވައެވެ.
pause ތަކެތި މެދުވެރިކޮށް ކެރޮސެލް ސައިކަލް ދުއްވުން ހުއްޓުވައެވެ.
prev ކުރީގެ އައިޓަމަށް ސައިކަލް ކުރެއެވެ. ކުރީގެ އެއްޗެއް ދައްކާލުމުގެ ކުރިން (މިސާލަކަށް، އިވެންޓް ހިނގުމުގެ ކުރިން) ގުޅާ މީހާއަށް އެނބުރިދެއެވެ.slid.bs.carousel
next ދެން އޮތް އެއްޗަކަށް ސައިކަލް ކުރެއެވެ. ދެން އޮތް އެއްޗެއް ދައްކާލުމުގެ ކުރިން (މިސާލަކަށް، އިވެންޓް ހިނގުމުގެ ކުރިން) ގުޅާ މީހާއަށް އެނބުރިދެއެވެ.slid.bs.carousel
nextWhenVisible ޕޭޖް ނުފެންނަ ވަގުތުތަކުގައި ނުވަތަ ކެރޮސެލް ނުވަތަ އޭގެ ބެލެނިވެރިޔާ ނުފެންނަ ވަގުތުތަކުގައި ކެރޮސެލް އަށް ސައިކަލް ނުޖައްސާށެވެ. ޓާގެޓް އައިޓަމް ދައްކާލުމުގެ ކުރިން ގުޅާ މީހާއަށް އެނބުރި ދެއެވެ
to ކެރޮސެލް ވަކި ފްރޭމަކަށް ސައިކަލް ކުރެއެވެ (0 އަށް ބިނާކޮށް، އެރޭއަކާ އެއްގޮތް). ޓާގެޓް އައިޓަމް ދެއްކުމުގެ ކުރިން (މިސާލަކަށް، އިވެންޓް ހިނގުމުގެ ކުރިން) ކޯލަރަށް އެނބުރިދެއެވެ.slid.bs.carousel
dispose އުނިއިތުރެއްގެ ކެރޮސެލް ހަލާކުކޮށްލައެވެ. (ޑޮމް އެލިމެންޓްގައި ރައްކާކޮށްފައިވާ ޑޭޓާ ނައްތާލައެވެ)
getInstance ޑޮމް އެލިމެންޓަކާ ގުޅިފައިވާ ކެރޮސެލް އިންސްޓޭންސް ހޯދުމަށް ފުރުސަތު ލިބޭ ސްޓޭޓިކް މެތޯޑް، މިގޮތަށް ބޭނުންކުރެވިދާނެއެވެ:bootstrap.Carousel.getInstance(element)
getOrCreateInstance ޑޮމް އެލިމެންޓަކާ ގުޅިފައިވާ ކެރޮސެލް އިންސްޓޭންސްއެއް ރިޓަރން ކުރާ ނުވަތަ އިނިޝިއަލައިޒް ނުކުރެވުނު ހާލަތެއްގައި އާ އިންސްޓޭންސްއެއް އުފައްދާ ސްޓޭޓިކް މެތޯޑް. މިގޮތަށް ބޭނުންކުރެވިދާނެއެވެ:bootstrap.Carousel.getOrCreateInstance(element)

އިވެންޓްސް

ބޫޓްސްޓްރެޕްގެ ކެރޮސެލް ކްލާހުގައި ކެރޮސެލް ފަންކްޝަނަލިޓީއަށް ހޫކް ކުރުމަށް ދެ އިވެންޓެއް ހާމަކޮށްދެ އެވެ. ދެ އިވެންޓުގައި ވެސް ތިރީގައިވާ އިތުރު ޕްރޮޕަޓީތައް ހުރެއެވެ.

  • direction: ކެރޮސެލް ސްލައިޑް ވަމުންދާ މިސްރާބު (އެއީ "left"ނުވަތަ "right") އެވެ.
  • relatedTarget: އެކްޓިވް އައިޓަމްގެ ގޮތުގައި ތަނަށް ސްލައިޑް ކުރަމުންދާ ޑީއޯއެމް އެލިމެންޓް.
  • from: މިހާރު ހުރި އެއްޗެއްގެ އިންޑެކްސް
  • to: ދެން އަންނަ އެއްޗެއްގެ އިންޑެކްސް

ހުރިހާ ކެރޮސެލް އިވެންޓްތަކެއް ފަޔަރ ކުރަނީ ޚުދު ކެރޮސެލް އަށް (އެބަހީ އެ <div class="carousel">) އެވެ.

އިވެންޓް ޓައިޕް ތަފްޞީލު
slide.bs.carousel slideއިންސްޓޭންސް މެތޯޑް އިންވޮކޭޓް ކުރުމުން ވަގުތުން ފަޔަރ ކުރެއެވެ.
slid.bs.carousel ކެރޮސެލްގެ ސްލައިޑް ޓްރާންސިޝަން ނިމުމުން ފަޔަރ ކުރެވެއެވެ.
var myCarousel = document.getElementById('myCarousel')

myCarousel.addEventListener('slide.bs.carousel', function () {
  // do something...
})