# bricksable/1.4.32/assets/js/content-toggle/frontend.min.js

Bricksable for Bricks Builder, version 1.4.32. 1 lines.

- Page: https://pluginprobe.com/plugins/bricksable/1.4.32/code/assets/js/content-toggle/frontend.min.js
- Raw: https://pluginprobe.com/plugins/bricksable/1.4.32/raw/assets/js/content-toggle/frontend.min.js
- Modified: 2022-05-29T02:32:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/bricksable/1.4.32/code/assets/js/content-toggle/frontend.min.js#L10-L20`.

```javascript
function bricksableContentToggle(){bricksQuerySelectorAll(document,".brxe-ba-content-toggle, .bricks-element-ba-content-toggle").forEach(function(t){var e=t.querySelector(".ba-content-toggle-item.active"),i=(t.querySelector(".ba-content-toggle-tab-item"),bricksQuerySelectorAll(t,".ba-content-toggle-item")),n=t.querySelector(".ba-content-toggle-slider");n.style.left=e.offsetLeft+"px",n.style.width=e.offsetWidth+"px",n.style.height=e.offsetHeight+"px",n.style.transition="width 0.35s, height 0.35s, left 0.35s",i.forEach(function(e,o){var s=bricksQuerySelectorAll(t,".ba-content-toggle-tab-item");e.addEventListener("click",function(){i.forEach(function(t,i){i===o?e.classList.add("active"):t.classList.remove("active"),i===o?e.setAttribute("aria-hidden","true"):t.setAttribute("aria-hidden","false")}),s.forEach(function(t,e){var i=t.getAttribute("data-animation");e===o?t.classList.add("show-content","bricks-animated",i):t.classList.remove("show-content","bricks-animated",i),e===o?t.setAttribute("aria-hidden","true"):t.setAttribute("aria-hidden","false")}),n.style.left=e.offsetLeft+"px",n.style.width=e.offsetWidth+"px",n.style.height=e.offsetHeight+"px"})})})}document.addEventListener("DOMContentLoaded",function(t){bricksIsFrontend&&bricksableContentToggle()});
```
