- Issue created by @thomas.frobieter
- 🇩🇪Germany Anybody Porta Westfalica
Moved to https://www.drupal.org/project/drowl_paragraphs_bs → where new features will be added.
Add a new Paragraph Type "Before/After Image Slider": https://github.com/koenoe/cocoen
Twig example code:
{% extends "paragraph.html.twig" %}
{% block content %}
{{ attach_library('drowl_paragraphs/paragraph-before-after-image-slider') }}
<div class="cocoen">
{{ content.field_paragraphs_image|field_value }}
{{ content.field_paragraphs_image_secondary|field_value }}
</div>
{% endblock %}
Javascript init:
(function ($, Drupal) {
Drupal.behaviors.drowl_paragraphs_image_before_after_slider = {
attach: function (context, settings) {
$('.paragraph--type--before-after-image-slider', context).each(function () {
Cocoen.parse($(this)[0]);
});
},
};
})(jQuery, Drupal);
Active
1.0
Code
Moved to https://www.drupal.org/project/drowl_paragraphs_bs → where new features will be added.