Dynamic states offer extended possibilities to control the properties of quantum matter. Recent efforts are focused on studying the ordered states which appear exclusively under the time-dependent drives. Here, we demonstrate a class of systems which feature dynamic spin-triplet superconducting order stimulated by the alternating electric field. The effect is based on the interplay of ferromagnetism, interfacial spin-orbital coupling, and the condensate motion driven by the field, which converts hidden static p-wave order, produced by the joint action of the ferromagnetism and the spin-orbital coupling, into dynamic s-wave equal-spintriplet correlations. We demonstrate that the critical current of Josephson junctions hosting these states is proportional to the electromagnetic power, supplied either by the external irradiation or by the ac current source. Based on these unusual properties we propose the scheme of a Josephson transistor which can be switched by the ac voltage and demonstrates an even-numbered sequence of Shapiro steps. Combining the photoactive Josephson junctions with recently discovered Josephson phase batteries we find photomagnetic SQUID devices which can generate spontaneous magnetic fields while being exposed to irradiation.