An antipanic device of the type comprising a boxlike body on which a movable component is articulated which is of the type chosen from a handle, a touch bar, a push bar and the like, and which accommodates at least one sliding rod for the actuation of the at least one closure element, of a type chosen from a bolt, a spring latch, a latch and the like, wherein the antipanic device comprises: - at least one kinematic assembly associated with said boxlike body functionally associated with said rod, - temporary retention means of the type of an electromagnet, normally supplied with electric power for magnetic attraction in the configuration for locking a tab of said at least one kinematic assembly made of ferromagnetic material, - at least one control and management unit, controlled by at least one sensor for detecting the position of said rod and for controlling the power supply of said electromagnet, following a partial translation of said rod, which corresponds to the actuation of said movable component by a user to open said device, said at least one sensor signaling the translation to said unit and said unit interrupting the power supply of said electromagnet for the release, within a predefined and settable time, of said tab of said kinematic assembly, freeing further translations of said rod for the retraction of the at least one said closure element, characterized in that said at least one kinematic assembly comprises a first carousel which is pivoted on said boxlike body proximate to said rod and a second carousel which is pivoted on said boxlike body proximate to said electromagnet, said first carousel comprising a first arm which interferes with said rod at a predefined portion of its stroke and a second arm which abuts against the front of a first protrusion of said second carousel which comprises a second protrusion provided with said end tab which abuts against said electromagnet, in the inactive configuration said first protrusion being non-perpendicular to the surface of said second arm against which it abuts. - at least one kinematic assembly associated with said boxlike body functionally associated with said rod, - temporary retention means of the type of an electromagnet, normally supplied with electric power for magnetic attraction in the configuration for locking a tab of said at least one kinematic assembly made of ferromagnetic material, - at least one control and management unit, controlled by at least one sensor for detecting the position of said rod and for controlling the power supply of said electromagnet, following a partial translation of said rod, which corresponds to the actuation of said movable component by a user to open said device, said at least one sensor signaling the translation to said unit and said unit interrupting the power supply of said electromagnet for the release, within a predefined and settable time, of said tab of said kinematic assembly, freeing further translations of said rod for the retraction of the at least one said closure element, characterized in that said at least one kinematic assembly comprises a first carousel which is pivoted on said boxlike body proximate to said rod and a second carousel which is pivoted on said boxlike body proximate to said electromagnet, said first carousel comprising a first arm which interferes with said rod at a predefined portion of its stroke and a second arm which abuts against the front of a first protrusion of said second carousel which comprises a second protrusion provided with said end tab which abuts against said electromagnet, in the inactive configuration said first protrusion being non-perpendicular to the surface of said second arm against which it abuts.