<a id="mol-mobile-toggle">
<span class="open">
<span class="atm-icon far fa-bars fa-fw"></span>
</span>
<span class="close">
<span class="atm-icon far fa-times fa-fw"></span>
</span>
</a>
<a id="mol-mobile-toggle">
<span class="open">
{{!-- <span class="text">Menu</span> --}}
{{render '@icon' iconOpen}}
</span>
<span class="close">
{{!-- <span class="text">Sluiten</span> --}}
{{render '@icon' iconClose}}
</span>
</a>
{
"iconOpen": {
"style": "far",
"icon": "fa-bars",
"fixedWidth": true
},
"iconClose": {
"style": "far",
"icon": "fa-times",
"fixedWidth": true
}
}
#mol-mobile-toggle
{
@apply font-display text-md text-gray-500;
@apply inline-block;
@apply cursor-pointer;
@apply select-none;
.atm-icon
{
@apply relative;
top: 1px;
}
.open
{
@apply block;
}
.close
{
@apply hidden;
}
&.mobile-nav-opened
{
.open
{
@apply hidden;
}
.close
{
@apply block;
}
}
}
(function () {
'use strict';
$('#mol-mobile-toggle').on('click', function (e) {
e.preventDefault();
$('html, #mol-mobile-nav, #mol-mobile-toggle').toggleClass('mobile-nav-opened');
});
})();
No notes defined.