JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://fthgroup.blueinkcms.com/stylesheets/style/fthgroup.1265662695.css">
<div class="content-add">
<div class="item html 18" id="dditem_26">
<a id="ddlink_26"></a>
<a href="#" class="open ddheader"><strong>F. Tony Hosseini</strong></a>
<div class="content">
<p>F. Tony Hosseini is the Founder and Chairman of the FTH Group of companies. He has over 30 years of experience in international business development, finance and private syndication work, developing and syndicating over $500 million dollars of industrial, commercial and residential projects around the world.</p>
<p>Before coming to the United States, Tony lived in Iran (Persia) where he served as the project Quality Control officer for National Construction Company, developing the natural gas line between Iran and the USSR. He was also a General Partner for Iran-America Insurance Company, a multi-line insurance operation in the southern region of Iran.</p>
</div>
</div>
<div class="item html 19" id="dditem_25">
<a id="ddlink_25"></a>
<a href="#" class="open ddheader"><strong>Robert J. O'Leary</strong></a>
<div class="content">
<p>Robert J. (Bob) O'Leary is Vice Chairman of the FTH Group of companies. He also serves as a partner at Insignia Building, LLC, a leading construction company operating in high-end residential communities in the Carolinas. Bob brings with him over 30 years to the field of corporate public affairs, including communications, government affairs and brand management.</p>
<p>A native of Pennsylvania, Bob is a graduate of Penn State University, where he was named an Alumni Fellow. He serves on the Board of Visitors of the university's College of Communications, the college's campaign development committee, and regularly guest lectures and mentors students at the university. He resides in Greenville, South Carolina.</p>
</div>
...
JavaScript
var simpleSlider = new Class({
options: {
trigger: {
selector: "a.slider",
toggleClass: "open-slide"
},
foldables: "div.content",
hideAtStart: true
},
Implements: [Options],
initialize: function(options) {
this.setOptions(options);
this.triggers = $$(this.options.trigger.selector);
if (!this.triggers.length)
return;
this.setupTogglers();
},
setupTogglers: function() {
this.triggers.each(function(el) {
el.addEvents({
click: function(e) {
e.stop();
el.toggleClass(this.options.trigger.toggleClass);
this.toggler(el);
}.bind(this)
});
el.store("fx", new Fx.Slide(el.getNext(this.options.foldables)));
if (this.options.hideAtStart)
el.retrieve("fx").hide();
}.bind(this));
},
toggler: function(el) {
el.retrieve("fx").toggle();
}
});
new simpleSlider({
trigger: {
selector: "a.open"
}
});