Kapitza’s pendulum is an inverted pendulum that is dynamically stabilized by rapidly driving its pivot point. Many applications of Kapitza stabilization in quantum systems have been proposed, such as optical molasses, the stability of optical resonators, preparation of molecular ions, the breaking of translation symmetry, the periodically driven sine-Gordon model, polariton Rabi oscillation, and the stabilization of bright solitons in a Bose-Einstein condensate. In particular, Kapitza stabilization can be used to trap particles. The most notable example of such an application is the Paul trap.Recently, the Kapitza trap was created by superimposing time-tuned focused laser beams to produce a periodically driven harmonic potential for ultracold atomic gases. This work opens up new possibilities to study Floquet systems of ultracold atomic gases. So we consider the periodically driven harmonic potential, and investigate the properties of soliton in ultracold atomic gases by numerical simulations. It is found interestingly that when a soliton is located at the center of the harmonic potential, a resonance phenomenon of soliton amplitude oscillation occurs at a specific driven frequency. In addition, the oscillation amplitude increases with the increase of the trapping frequency of the harmonic potential, and the resonance frequency increases with theaugment of soliton initial amplitude.The change of driven frequency and initial phase has a significant effect on soliton motion when the soliton is located at the edge of the harmonic potential. When the initial phase is zero, there is a characteristic driven frequency. For the case where the driven frequency is equal to the characteristic frequency, soliton motion exhibits periodic oscillations. For the case where the driven frequency is slightly lower than the characteristic frequency, the resonance of soliton oscillation can be found. When the driven frequency is slightly higher than the characteristic frequency, the anti-resonance of soliton oscillation can be found. In addition, it is found that the characteristic driven frequency increases linearly with the increase of the trapping frequency of the harmonic potential. When the initial phase is not equal to zero, the irregular oscillation, quasi-periodic oscillation, and periodic oscillation can be observed with the increase of driven frequency. When the driven frequency is equal to a specific value, the resonance of soliton oscillation can also obtained. Furthermore, the fast driving has no effect on the motion trajectory of solitons. These results can help to precisely control ultracold atomic gases.