Recently, the method of using a special category of synthetic analytical pulses under off-resonant conditions has improved the experimental performance of two- and multi-qubit gates in the cold atom qubit platform. In order to explore more possibilities and wider ranges of options, we design and analyze the method of almost-resonant modulated driving (ARMD) in constructing fast-speed and high-fidelity quantum logic gates. Whilst the modulation forms the key concept of high-fidelity Rydberg blockade gates so far, the on-off resonance condition can lead to nontrivial nuances in the styles of dynamics, and the ARMD gate protocols have its different characteristic mechanisms in quantum physics compared with the off-resonant gate processes. In particular, ARMD gates usually have abrupt phase changes and at certain points during the time evolution. From a more fundamental point of view, both the resonant and off-resonant methods all together belong to the unitary operation family of fast modulated driving with respect to precisely characterized inter-qubit interactions, which usually allows the quantum logic gate to conclude within one continuous pulse. We anticipate the ARMD gates to work well with the Rydberg dipole-dipole interaction and will serve as a helpful tool in the future studies of the cold atom qubit platform.