JSFiddle - React, Tailwind, and code Playground

HTML

<div id="test">
	<div class="col col-1"></div>
	<div class="col col-2"></div>
	<div class="col col-3"></div>
	<div class="col col-4"></div>
</div>

CSS

.col { opacity: .65; -webkit-transition: all 200ms; -moz-transition: all 200ms; -ms-transition: all 200ms; -o-transition: all 200ms; transition: all 200ms; }

.col:hover { opacity: 1; -webkit-transition: all 200ms; -moz-transition: all 200ms; -ms-transition: all 200ms; -o-transition: all 200ms; transition: all 200ms; cursor: pointer; }

.col-1 { background: #ccffff; }

.col-2 { background: #b3ffff; }

.col-3 { background: #99ffff; }

.col-4 { background: #80ffff; }

.act { background: black; }

JavaScript

$(document).ready(function() {

	// SPLiTSCREEN FUNCTiON
	splitScreen = function() {

		// GET CONFIG
		var config = {
			windowWidth: $(window).width(),
			windowHeight: $(window).height()
		};

		// FORMAT COLUMNS
		function test(container) {
			var columns = container.children('.col').length;

			container.children('.col').each(function() {
				$(this).css({
					'float':'left',
					'width':100/columns+'%',
					'height':config.windowHeight
				});
			});

			container.children('.col').last().on('click', function() {
				for(var i = 1; i <= columns; i++) {
					var int = self.setInterval(function() {
						console.log('a')
					},500*i)
				}
			});
		}

		// RETURNS
		return {
			config: config,
			test: test
		}
	}();

	splitScreen.test($('#test'));

});