JSFiddle - React, Tailwind, and code Playground

HTML

<div class="pic">.pic</div>

<div id="log"></div>

JavaScript

// Ersatz für Slider:
var $log=$('#log'), slider={
  stop: function() { $log.append('<br>STOP'); }
};
// bis hierher ignorieren

$(function() {
  var $pic=$('.pic'), start_width=$pic.width(), new_width;

  $(window).resize(function() {
    new_width=$pic.width();
    if (new_width>start_width) {
      slider.stop();
    }
  });
});